# .NET MAUI Track Styling

The Slider for .NET MAUI provides the following styling options for the backtrack (the track the thumb slides along):

* `BackTrackThickness` (`double`)—Specifies the thickness of the Slider's backtrack.
* `BackTrackColor` (`Color`)—Defines the color of the Slider's backtrack.
* `BackTrackStyle` (`Style`)—Defines a custom style for the Slider's backtrack.

The Slider for .NET MAUI provides the following styling options for the range track (the track between `OriginValue` and `Value`):

* `RangeTrackFill` (`Color`)—Defines the fill color for the Slider's range track.
* `RangeTrackStyle` (`Style`)—Defines a custom style for the Slider's range track.

The following example demonstrates how to use the described styling properties to style the Slider's backtrack and range track:

**1.** Add a custom style with `TargetType` set to `RadBorder` to the page's resources:

```XAML
<Style x:Key="CustomBackTrackStyle" TargetType="telerik:RadBorder">
    <Setter Property="BorderColor" Value="#B2DFDB" />
    <Setter Property="BorderThickness" Value="1" />
    <Setter Property="CornerRadius" Value="4" />
    <Setter Property="HeightRequest" Value="8" />
</Style>
```

**2.** Add a custom style with `TargetType` set to `SliderRangeTrack` to the page's resources:

```XAML
<Style x:Key="CustomRangeTrackStyle" TargetType="telerik:SliderRangeTrack">
    <Setter Property="Stroke" Value="#00897B" />
    <Setter Property="StrokeThickness" Value="1" />
    <Setter Property="TrackThickness" Value="8" />
</Style>
```

**3.** Apply the custom styles to the Slider:

```XAML
<telerik:RadSlider Minimum="0"
                   Maximum="100"
                   Value="35"
                   BackTrackColor="#80CBC4"
                   BackTrackStyle="{StaticResource CustomBackTrackStyle}"
                   RangeTrackFill="#009688"
                   RangeTrackStyle="{StaticResource CustomRangeTrackStyle}" />
```

Check the result below:

![Telerik Slider for .NET MAUI Track Styling](https://www.telerik.com/maui-ui/documentation/assets/7f75f5903f9fce7d7a49ae7ea692cc4f/slider-track-styling.png)

## See Also

* [Backtrack](https://www.telerik.com/maui-ui/documentation/controls/slider/backtrack)
* [Range Track](https://www.telerik.com/maui-ui/documentation/controls/slider/range-track)
* [Value Thumb](https://www.telerik.com/maui-ui/documentation/controls/slider/value-thumb)
