Álvaro García
Álvaro García

Reputation: 19356

Which is the difference between content page c# and content page xaml?

When I want to create a new content page in a MAUI project, I have 2 options, ContentPage C#and ContentPage XAML.

Which is the difference between both of them?

There is some cases where is better to use one than the other?

Thanks.

Upvotes: 0

Views: 428

Answers (1)

Jason
Jason

Reputation: 89082

One is a XAML file with a C# code behind. The other is purely a C# class.

One is not inherently "better" than the other. It is purely a matter of preference and coding style.

Upvotes: 2

Related Questions