How do I disable a button?

Platform: .NET MAUI| Category: Controls

You can disable a button by setting its IsEnabled property to false. This will gray out the button and prevent user interaction.
XAML:

<Button x:Name="button" IsEnabled="False"/>

Share with

Related FAQs

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

Please submit your question and answer.