Back to Devexpress

DXSwitch.ThumbColor Property

maui-devexpress-dot-maui-dot-core-dot-dxswitch-aae28477.md

latest1.4 KB
Original Source

DXSwitch.ThumbColor Property

Gets or sets the thumb color of the DXSwitch. This is a bindable property.

Namespace : DevExpress.Maui.Core

Assembly : DevExpress.Maui.Core.dll

NuGet Package : DevExpress.Maui.Core

Declaration

csharp
public Color ThumbColor { get; set; }

Property Value

TypeDescription
Color

The thumb color.

|

Remarks

The DXSwitch gets its thumb color from the applied Theme or ThemeSeedColor.

Use the ThumbColor property to define the thumb color explicitly. You can set the ThumbColor property to null to restore the original thumb color:

xaml
<dx:DXSwitch ...
            IsChecked="False"
            ThumbColor="{x:Null}"/>

For more information, refer to the following section: .NET MAUI DXSwitch: Thumb.

See Also

DXSwitch Class

DXSwitch Members

DevExpress.Maui.Core Namespace