Home » FAQ » .NET MAUI » How do I disable a button?
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"/>
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with