# Getting Started with WPF BusyIndicator

This tutorial will walk you through the creation of a sample application that contains **RadBusyIndicator**.

> The **RadBusyIndicator** is displayed on the UI thread. If this thread is blocked, the control will not be shown. It is meant to indicate to the user that there is a long running background task/process.

## Adding Telerik Assemblies Using NuGet

To use **RadBusyIndicator** when working with NuGet packages, install the `Telerik.Windows.Controls.for.Wpf.Xaml` package. The [package name may vary](https://www.telerik.com/products/wpf/documentation/installation/manual-setup-guides/nuget/available-packages) slightly based on the Telerik dlls set - [Xaml or NoXaml](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/xaml-vs-noxaml)

Read more about NuGet installation in the [Installing UI for WPF from NuGet Package](https://www.telerik.com/products/wpf/documentation/installation/manual-setup-guides/nuget/nuget-installation) article.

> tip With the 2025 Q1 release, the Telerik UI for WPF has a new licensing mechanism. You can learn more about it [here](https://www.telerik.com/products/wpf/documentation/installation/licensing/installing-license-key).

## Adding Assembly References Manually

If you are not using NuGet packages, you can add a reference to the following assemblies:

* **Telerik.Licensing.Runtime**
* **Telerik.Windows.Controls**

## Adding RadBusyIndicator to the Project

Make sure the required assembly reference is added to the project before you proceed with adding **RadBusyIndicator** to your project.

You can add **RadBusyIndicator** manually by writing the XAML code in **Example 1**. You can also add the control by dragging it from the Visual Studio Toolbox and dropping it over the XAML view.

**Example 1: Adding RadBusyIndicator in XAML**

```XAML
<telerik:RadBusyIndicator x:Name="radBusyIndicator">
    
</telerik:RadBusyIndicator>
```

In order to use **RadBusyIndicator** in XAML, you have to add the namespace declaration shown in **Example 2**.

**Example 2: Declaring Telerik Namespace**

```C#
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
```

When you are using **RadBusyIndicator**, you always have to set its **Content** property. This will be the content on top of which you want to visualize **RadBusyIndicator**. **Example 3** demonstrates **RadBusyIndicator** with some custom **Content** placed inside it:

**Example 3: Adding Content**

```XAML
<telerik:RadBusyIndicator x:Name="radBusyIndicator1">
    <Grid>
        <telerik:RadListBox>
            <telerik:RadListBoxItem Content="Australia" />
            <telerik:RadListBoxItem Content="Brazil" />
            <telerik:RadListBoxItem Content="Canada" />
            <telerik:RadListBoxItem Content="China" />
            <telerik:RadListBoxItem Content="England" />
            <telerik:RadListBoxItem Content="Germany" />
        </telerik:RadListBox>
    </Grid>
</telerik:RadBusyIndicator>
```

## Enabling RadBusyIndicator

To activate **RadBusyIndicator** you have to set its **IsBusy** boolean property to **True**. It is a Dependency property that you can data bind in any way that suits your custom logic.

> **RadBusyIndicator** will be visible only when the **IsBusy** property is set to **True**.

**Example 4** presents **RadBusyIndicator** with its **IsBusy** property set to **True**:

**Example 4: Adding Content**

```XAML
<telerik:RadBusyIndicator x:Name="radBusyIndicator2" IsBusy="True">
    <Grid>
        <telerik:RadListBox>
            <telerik:RadListBox>
                <telerik:RadListBoxItem Content="Australia" />
                <telerik:RadListBoxItem Content="Brazil" />
                <telerik:RadListBoxItem Content="Canada" />
                <telerik:RadListBoxItem Content="China" />
                <telerik:RadListBoxItem Content="England" />
                <telerik:RadListBoxItem Content="Germany" />
            </telerik:RadListBox>
        </telerik:RadListBox>
    </Grid>
</telerik:RadBusyIndicator>
```

If you run the application you will see **RadBusyIndicator** placed on top of its **Content**.

> caption This figure is generated by the code in example 4 RadBusyIndicator

![WPF RadBusyIndicator Busy State](https://www.telerik.com/products/wpf/documentation/assets/403a3dc680908363cf12047d1129383c/radbusyindicator_gettingstarted_1.png)

## Progress Determination, Custom BusyContent, Delaying of Display

### Progress Determination

**RadBusyIndicator**  supports two main modes of execution that could be used to visualize the progress of the control - determined and indeterminate. If you need a determined **RadBusyIndicator** you have to set the value of the **IsIndeterminated** property to **False**. Please, check [this](https://www.telerik.com/products/wpf/documentation/controls/radbusyindicator/features/progress-determination) article for some information concerning the progress determination of **RadBusyIndicator**.

### Custom Busy Content

**RadBusyIndicator** exposes a **BusyContentTemplate** property of type DataTemplate. Through this template you can customize what is shown in RadBusyIndicator's content while the indicator is active. For more information, look at [this article](https://www.telerik.com/products/wpf/documentation/controls/radbusyindicator/features/custom-busy-content).

### Delaying of display

You can notify the users about an ongoing process with a specific delay when **RadBusyIndicator** is used. By changing the **DisplayAfter** property to a certain **TimeSpan**, **RadBusyIndicator** will be shown after the corresponding amount of time elapses - the default value of this delay is 100 milliseconds. For detailed information about using a delay with **RadBusyIndicator**, look at [this article](https://www.telerik.com/products/wpf/documentation/controls/radbusyindicator/features/delayed-display).

## Setting a Theme

The controls from our suite support different themes. You can see how to apply a theme different than the default one in the [Setting a Theme](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-setting-a-theme-overview) help article.

> important Changing the theme using implicit styles will affect all controls that have styles defined in the merged resource dictionaries. This is applicable only for the controls in the scope in which the resources are merged.

To change the theme, you can follow the steps below:

* Choose between the themes and add reference to the corresponding theme assembly (ex: **Telerik.Windows.Themes.Fluent.dll**). You can see the different themes applied in the **Theming** examples from our [WPF Controls Examples](https://demos.telerik.com/wpf/) application.

* Merge the ResourceDictionaries with the namespace required for the controls that you are using from the theme assembly. For the **RadBreadcrumb**, you will need to merge the following resources:

  * **Telerik.Windows.Controls**

**Example 5** demonstrates how to merge the ResourceDictionaries so that they are applied globally for the entire application.

**Example 5: Merge the ResourceDictionaries**

```XAML
<telerik:RadBusyIndicator x:Name="radBusyIndicator2" IsBusy="True">
    <Grid>
        <telerik:RadListBox>
            <telerik:RadListBox>
                <telerik:RadListBoxItem Content="Australia" />
                <telerik:RadListBoxItem Content="Brazil" />
                <telerik:RadListBoxItem Content="Canada" />
                <telerik:RadListBoxItem Content="China" />
                <telerik:RadListBoxItem Content="England" />
                <telerik:RadListBoxItem Content="Germany" />
            </telerik:RadListBox>
        </telerik:RadListBox>
    </Grid>
</telerik:RadBusyIndicator>
```

> Alternatively, you can use the theme of the control via the [StyleManager](https://docs.telerik.com/devtools/wpf/styling-and-appearance/stylemanager/common-styling-apperance-setting-theme-wpf).

**Figure 1** shows a **RadBusyIndicator** with the **Fluent** theme applied.

> caption RadBusyIndicator with the fluent theme

![RadBusyIndicator with Fluent theme](https://www.telerik.com/products/wpf/documentation/assets/fd1bac19466ecb8ffce168fa5f118743/radbusyindicator-setting-theme.png)

## Telerik UI for WPF Learning Resources

* [Telerik UI for WPF BusyIndicator Component](https://www.telerik.com/products/wpf/busyindicator.aspx)
* [Getting Started with Telerik UI for WPF Components](https://www.telerik.com/products/wpf/documentation/getting-started/first-steps-nuget)
* [Telerik UI for WPF Installation](https://www.telerik.com/products/wpf/documentation/installation/manual-setup-guides/installation-guide)
* [Telerik UI for WPF and WinForms Integration](https://www.telerik.com/products/wpf/documentation/common-information/winforms-integration/overview)
* [Telerik UI for WPF Visual Studio Templates](https://www.telerik.com/products/wpf/documentation/installation/manual-setup-guides/visual-studio-templates)
* [Setting a Theme with Telerik UI for WPF](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-setting-a-theme-overview)
* [Telerik UI for WPF Virtual Classroom (Training Courses for Registered Users)](https://learn.telerik.com/learn/course/external/view/elearning/16/telerik-ui-for-wpf)
* [Telerik UI for WPF License Agreement](https://www.telerik.com/purchase/license-agreement/wpf-dlw-s)

## See Also

* [Overview](https://www.telerik.com/products/wpf/documentation/controls/radbusyindicator/overview)

* [Visual Structure](https://www.telerik.com/products/wpf/documentation/controls/radbusyindicator/visual-structure)

* [Customizing BusyIndicator Elements](https://www.telerik.com/products/wpf/documentation/controls/radbusyindicator/customizing-busyindicator-elements)

* [Integrate RadBusyIndicator with a Service Call in RadWindow](https://www.telerik.com/products/wpf/documentation/knowledge-base/kb-busyindicator-integrate-with-services-and-radwindow)
