How do I create a Button in .NET MAUI?

Platform: .NET MAUI| Category: Controls

You can create a Button in .NET MAUI using XAML or C# code. In XAML, use the <Button> element, and in C#, create a new instance of the Button class.

XAML:

<Button x:Name="button" />

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.