maui-405102-utility-controls-button-index.md
The DevExpress Mobile UI for .NET MAUI suite ships with DXButton and DXToggleButton controls.
The DevExpress DXButton for .NET MAUI performs the assigned action when a user taps it. The control can display a caption string ( Content ), icon ( Icon ), or both.
Before you proceed, read the following topic: Get Started with DevExpress Controls for .NET Multi-platform App UI (.NET MAUI).
The following example adds a DXButton to the page and sets its content to match the image above:
<ContentPage ...
xmlns:dx="clr-namespace:DevExpress.Maui.Core;assembly=DevExpress.Maui.Core">
<dx:DXButton ...
Content="CLEAR"
Icon="clear" />
</ContentPage>
The DevExpress DXToggleButton for .NET MAUI performs the assigned action when a user switches it to the checked or unchecked state. The control can display a caption string ( Content ), icon ( Icon ), or both.
Before you proceed, read the following topic: Get Started with DevExpress Controls for .NET Multi-platform App UI (.NET MAUI).
The following example adds a DXToggleButton to the page and sets its content to match the image above:
<ContentPage ...
xmlns:dx="clr-namespace:DevExpress.Maui.Core;assembly=DevExpress.Maui.Core"
<dx:DXToggleButton ...
Content="Bookmark"
Icon="bookmark" />
</ContentPage>