Buttons allow users to take actions, and make choices, with a single tap.
View Material Design documentation
<material3:MaterialButton
Text="Download"
LeadingIcon="download.png"
Command="{Binding DownloadCommand}"
CommandParameter="Saved"
IsBusy="{Binding DownloadCommand.IsRunning}" />
- Elevated
- Filled (Default)
- Tonal
- Outlined
- Text
This property is to set the command to the button.
This property is to set the command parameter to the button.
This property is to set the headline text font family.
This property is to set if the button is enabled or disabled.
This property is to set the animation when the button is tapped.
- None
- Fade (Default)
- Scale
- Custom
This property is to customize the animation when the button is tapped.
This property is to set a custom animation when the button is tapped.
This property is to set the text of the button.
This property is to set the color of the button text.
This property is to set the disabled color of the button text.
This property is to set the background color of the button.
This property is to set the disabled background color of the button.
This property is to set the font size of the button text.
This property is to set the font family of the button text.
This property is to set the underlined style to the button text. It only works with the ButtonType Text.
This property is to make the text uppercase or lowercase, the default is false.
This property is to set the corner radius of the button.
This property is to set the border color of the button.
This property is to set the disabled border color of the button.
This property is to set the color of the busy indicator.
This property is to show a busy indicator in the button when a command is running.
This property is to set the leading icon with support for PNG, JPG or JPEG.
This property is to set the leading icon with support for view, you can use SVG, font icon, PNG, JPG or JPEG.
This property is to set the trailing icon with support for PNG, JPG or JPEG.
This property is to set the trailing icon with support for view, you can use SVG, font icon, PNG, JPG or JPEG.
This property is to set the sizes to the trailing and leading icons.
This property is to set a view with a custom busy indicator.
This property is to set the size to the busy indicator.
This property is to set the padding of the button.
This property is to set the spacing of the stack that contains the button icons and button text.
This property is to set if the content of the button is expanded, default is false