# Customizing BusyIndicator Elements

You can customize the overlay and the progress bar that `RadBusyIndicator` displays while it is busy.

## Set the Overlay Style

The `OverlayStyle` property applies a style to the `Rectangle` that overlays the control's content while the busy indicator is active. Define the style in a resource scope visible to the control, then assign it to `OverlayStyle`.

The following XAML fragment sets the overlay fill and opacity. Place the `Grid` where you want the busy indicator in your view, and declare the Telerik XAML namespace on the containing view.

```xaml
<Grid>
    <Grid.Resources>
        <Style x:Key="OverlayStyle" TargetType="Rectangle">
            <Setter Property="Fill" Value="#FF6BBDD2" />
            <Setter Property="Opacity" Value="0.5" />
        </Style>
    </Grid.Resources>
    <telerik:RadBusyIndicator
        IsBusy="True"
        OverlayStyle="{StaticResource OverlayStyle}"
        Background="Transparent">
        <TextBlock Text="Content remains visible while the indicator is active." />
    </telerik:RadBusyIndicator>
</Grid>
```

Set the `Background` property to `Transparent` if you do not want a background behind the busy content.

> caption RadBusyIndicator displaying a custom overlay while it is busy

![RadBusyIndicator with a custom overlay style](https://www.telerik.com/products/wpf/documentation/assets/5023b25e49a17005b359152d513c015a/radbusyindicator_styles_and_templates_overlay_style_010.png)

## Create a Custom Progress Bar Style

The `ProgressBarStyle` property lets you apply a custom style to the `RadProgressBar` inside `RadBusyIndicator`. The following example defines a style and applies it to the control:

```XAML
<Style x:Key="CustomProgressBarStyle" TargetType="telerik:RadProgressBar">
    <Setter Property="Foreground" Value="#FF027DB8"/>
    <Setter Property="Background" Value="#FFD2D5D8"/>
    <Setter Property="BorderThickness" Value="1"/>
    <Setter Property="Maximum" Value="100"/>
    <Setter Property="IsTabStop" Value="False"/>
    <Setter Property="BorderBrush">
        <Setter.Value>
            <LinearGradientBrush EndPoint=".5,1" StartPoint=".5,0">
                <GradientStop Color="#FFAEB7BF" Offset="0"/>
                <GradientStop Color="#FF919EA7" Offset="0.35"/>
                <GradientStop Color="#FF7A8A99" Offset="0.35"/>
                <GradientStop Color="#FF647480" Offset="1"/>
            </LinearGradientBrush>
        </Setter.Value>
    </Setter>
    <Setter Property="Margin" Value="0,0,0,-25"/>
</Style>
```

```XAML
<telerik:RadBusyIndicator ProgressBarStyle="{StaticResource CustomProgressBarStyle}" />
```

Review the default template and required parts for your Telerik UI for WPF version and theme before applying a custom style. A custom `ProgressBarStyle` may not retain the default `RadProgressBar` template.

> caption RadBusyIndicator displaying a custom progress bar style

![RadBusyIndicator with a custom progress bar style](https://www.telerik.com/products/wpf/documentation/assets/06598085941ccb7a48c6958026cccd57/radbusyindicator_styles_and_templates_styling_radprogressbar_010.png)

## See Also

* [Custom Busy Content](https://www.telerik.com/products/wpf/documentation/controls/radbusyindicator/features/custom-busy-content)
* [RadProgressBar Overview](https://www.telerik.com/products/wpf/documentation/controls/radprogressbar/overview)
