maui-devexpress-dot-maui-dot-editors-dot-dxslidertrackappearance-8ffbb5e2.md
Gets or sets the background color of the track. This is a bindable property.
Namespace : DevExpress.Maui.Editors
Assembly : DevExpress.Maui.Editors.dll
NuGet Package : DevExpress.Maui.Editors
public Color BackgroundColor { get; set; }
| Type | Description |
|---|---|
| Color |
The background color.
|
The following example changes track appearance in DXSlider and DXRangeSlider controls:
<dxe:DXSlider Value="25">
<dxe:DXSliderBase.TrackAppearance>
<dxe:DXSliderTrackAppearance
ActiveBackgroundColor="#d65418"
BackgroundColor="#faccb6"
DisabledActiveBackgroundColor="#cc9621"
DisabledBackgroundColor="#fae3b1"
CornerRadius="10"
Thickness="20" />
</dxe:DXSliderBase.TrackAppearance>
</dxe:DXSlider>
<dxe:DXRangeSlider StartValue="15" EndValue="85">
<dxe:DXSliderBase.TrackAppearance>
<dxe:DXSliderTrackAppearance
ActiveBackgroundColor="#d65418"
BackgroundColor="#faccb6"
DisabledActiveBackgroundColor="#cc9621"
DisabledBackgroundColor="#fae3b1"
CornerRadius="10"
Thickness="20" />
</dxe:DXSliderBase.TrackAppearance>
</dxe:DXRangeSlider>
See Also