Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DevExpress Switch for .NET MAUI

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

.NET MAUI DXSwitch - States

#DXSwitch Elements (Anatomy)

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

.NET MAUI DXSwitch - Anathomy

#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:

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

#Next Steps

Caption
This topic explains how to specify and configure the caption of the DXSwitch control.
Thumb
This topic explains how to configure the thumb of the DXSwitch control.
Track
This topic explains how to configure the track of the DXSwitch control.
Groups
This topic explains how to group multiple DXSwitch controls.