# Setting a Theme with StyleManager

This help article will show you how to set a built-in theme to Telerik UI for WPF.

See the Telerik themes in the [Available Themes](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/available-themes) article.

In order to use one of the themes with the StyleManager you need to add references to the Telerik assemblies in your WPF project. You can find more information about the control dependencies in the [Control Dependencies](https://www.telerik.com/products/wpf/documentation/common-information/installation-installing-dependencies-wpf) topic.

## Setting a Theme per Control

In order to change the theme of a single control in XAML you need to set the `StyleManager.Theme` attached property.

**Changing the theme of a RadSlider to Windows11 in XAML**

```XAML
	<telerikControls:RadSlider telerikControls:StyleManager.Theme="Windows11"/>	
```

The following example shows how to change the theme of a single control in code-behind.

**Changing the theme of a RadSlider to Windows11 in code**

```C#
	StyleManager.SetTheme(this.radSlider, new Windows11Theme() );
```

```VB.NET
	StyleManager.SetTheme(Me.radSlider, New Windows11Theme())
```

> caption RadSlider with Windows11 theme applied

![Telerik UI for WPF RadSlider displayed with a built-in theme](https://www.telerik.com/products/wpf/documentation/assets/22301d1a9eeceffcde95c61f5bc7ef32/common_stylingthemingsettingbuiltintheme_020_wpf.png)

## Setting Application-Wide Theme

Changing the application theme is similar to changing the theme of single controls in WPF. However, changing the application theme has a much bigger impact as it affects all controls in the scope of your application. You can use the constructor of your application or the main window to set the desired theme.

**Set application-specific theme in the MainWindow constructor**

```C#
	public partial class MainWindow : Window
	{
		public MainWindow()
		{
			StyleManager.ApplicationTheme = new Windows11Theme();
			InitializeComponent();
		}
	}
```

```VB.NET
	Public Partial Class MainWindow
		Inherits Window
		Public Sub New()
			StyleManager.ApplicationTheme = New Windows11Theme()
			InitializeComponent()
		End Sub
	End Class
```

**Set application-specific theme in the App constructor**

```C#
	public App()
	{
		StyleManager.ApplicationTheme = new Windows11Theme();
		InitializeComponent();
	}
```

```VB.NET
	Public Class App
		Inherits Application
		Public Sub New()
			StyleManager.ApplicationTheme = New Windows11Theme()
			InitializeComponent()
		End Sub
	End Class
```

## See Also

* [Set a Theme by Using Implicit Styles](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-setting-a-theme-overview)
