Back to Devexpress

DevExpress Switch for .NET MAUI

maui-405233-utility-controls-switch-index.md

latest1.8 KB
Original Source

DevExpress Switch for .NET MAUI

  • Nov 14, 2024

The DevExpress DXSwitch for .NET MAUI performs the assigned action when a user toggles it.

DXSwitch Elements (Anatomy)

The DXSwitch control can display the caption and the switch (thumb and track).

Add a DXSwitch to the Page

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 DXSwitch instance to the page and sets its content to match the image above:

xaml
<ContentPage ...
            xmlns:dx="http://schemas.devexpress.com/maui">
        <dx:DXSwitch ...
            Content="Airplane mode"/>
</ContentPage>

Next Steps

CaptionThis topic explains how to specify and configure the caption of the DXSwitch control.ThumbThis topic explains how to configure the thumb of the DXSwitch control.TrackThis topic explains how to configure the track of the DXSwitch control.GroupsThis topic explains how to group multiple DXSwitch controls.