# .NET MAUI ProgressBar Styling

The ProgressBar control for .NET MAUI provides styling options for customizing its appearance.

* `TrackFill`(`Brush`)—Specifies the color of the background track.
* `TrackThickness`(`double`)—Specifies the thickness of the background track.
* Define corners to the background track by setting the `TrackCornerRadius`(`Microsoft.Maui.CornerRadius`) property.

```XAML
<Label Text="Custom TrackFill:" />
<telerik:RadLinearProgressBar Value="20"
                              TrackFill="LightBlue" />
```

![.NET MAUI ProgressBar Track Fill](https://www.telerik.com/maui-ui/documentation/assets/534f5b9fd611c7723b053a9185b2509f/progressbar-styling-track-fill.png)

* `ProgressFill`(`Brush`)—Specifies the color of the progress indicator.
* Define corners of the progress indicator by setting the `ProgressCornerRadius`(`Microsoft.Maui.CornerRadius`) property.

```XAML
<Label Text="Custom ProgressFill:" />
<telerik:RadLinearProgressBar Value="20"
                              ProgressFill="#FFAC3E" />
```

![.NET MAUI ProgressBar Progress Fill](https://www.telerik.com/maui-ui/documentation/assets/a36aae6d32a0cfb479a31f51385b199f/progressbar-styling-progress-fill.png)

## Styling the text

The following properties are related to the text displayed in the ProgressBar:

* `TextColor`(`Color`)—Defines the color of the Text which displays the progress value.
* `AlternateTextColor`(`Color`)—Defines the text color when the progress indicator overlaps the label which displays the current progress.
* `FontSize`(`double`)—Defines the font size of the Text which displays the progress value

```XAML
<Label Text="Custom ValueDisplayMode and FontSize:" />
<telerik:RadLinearProgressBar Value="90"
                              ValueDisplayMode="Percent"
                              FontSize="20"
                              HeightRequest="30" />
```

![.NET MAUI ProgressBar Text Styling](https://www.telerik.com/maui-ui/documentation/assets/b02a9c83deafca04e52182b05b5e3e9e/progressbar-styling-text.png)

## Styling the segments

Style the ProgressBar segments using the following properties:

* `SegmentSeparatorFill`(`Brush`)—Specifies the fill of the segments separators.
* `SegmentSeparatorThickness`(`double`)—Sets the thickness of the segments separators.

```XAML
<Label Text="Segments - custom fill and separator thickness:" />
<telerik:RadLinearProgressBar Value="25"
                              SegmentCount="10"
                              SegmentSeparatorFill="Black"
                              SegmentSeparatorThickness="2" />
```

![.NET MAUI ProgressBar Segments Separator Fill](https://www.telerik.com/maui-ui/documentation/assets/7853fb0dce619a402b0479a8c0c47d55/progressbar-styling-segments-separator.png)

## Styling the indeterminate mode

For indeterminate mode you can style the ProgressBar using the `ProgressFill`(`Brush`) property.

```XAML
<Label Text="Indeterminate mode with custom ProgressFill:" />
<telerik:RadLinearProgressBar Value="25"
                              IsIndeterminate="True"
                              ProgressFill="#F85446" />
```

![.NET MAUI ProgressBar Style the indeterminate mode fill](https://www.telerik.com/maui-ui/documentation/assets/a21725ba93cf2496925c354fefaace6d/progressbar-styling-indeterminate-fill.png)

> important For the ProgressBar Styling example refer to the [SDKBrowser Demo Application](https://www.telerik.com/maui-ui/documentation/demos-and-sample-apps/sdkbrowser-app).

## See Also

* [Configuration](https://www.telerik.com/maui-ui/documentation/controls/progressbar/configuration)
* [Indeterminate Mode](https://www.telerik.com/maui-ui/documentation/controls/progressbar/indeterminate-mode)
* [Events](https://www.telerik.com/maui-ui/documentation/controls/progressbar/events)
