# Theming Support for WPF Native Controls

The [available Telerik themes for WPF](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/available-themes) provide styling for the Telerik controls and also several native WPF controls.

This article lists all the native WPF controls supporting Telerik theming, and shows how to enable the theming using the [StyleManager theming approach](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-setting-a-theme-overview#setting-a-theme-using-stylemanager) and [implicit styles theming approach](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-setting-a-theme-overview#setting-a-theme-using-implicit-styles) mechanisms.

When using the **Implicit Styles** theming mechanism, the native controls are themed automatically when the Telerik's **System.Windows.xaml** file gets merged in the application resources.

When using the **StyleManager** theming, only the native controls used in the templates of the Telerik controls are automatically themed. All external WPF controls use their default theming.

## Native controls supported by the Telerik theming mechanism

Below is the full control list of native WPF controls supported by the Telerik theming mechanism:

* `System.Windows.Controls.Button`

* `System.Windows.Controls.ScrollViewer`

* `System.Windows.Controls.CheckBox`

* `System.Windows.Controls.TextBox`

* `System.Windows.Controls.RadioButton`

* `System.Windows.Controls.ListBox`

* `System.Windows.Controls.PasswordBox`

* `System.Windows.Controls.Primitives.RepeatButton`

* `System.Windows.Controls.Tooltip`

* `System.Windows.Documents.Hyperlink`

* `System.Windows.Controls.Primitives.StatusBar`

* `System.Windows.Controls.GridSplitter`

* `System.Windows.Controls.Separator`

Additionally, there are two more controls part of the Telerik UI for WPF suite which mimic the WPF native [Label](https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.label?view=netframework-4.5) and [GroupBox](https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.groupbox?view=netframework-4.5). There are no styles for the native versions of those controls. The reason behind this decision is a legacy related to the Silverlight framework (now outdated), which shared a common codebase with WPF. In the Silverlight framework there wasn't native Label and GroupBox controls so they were created in the Telerik suite in order to provide them to the Silverlight users and also to enable the theming support.

* `Telerik.Windows.Controls.Label`

* `Telerik.Windows.Controls.GroupBox`

> Before proceeding with this tutorial, you can check the [guide to setting a Telerik theme](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-setting-a-theme-overview).

## Setting the Theme Using Implicit Styles

To set the theme to all controls in the application, merge the corresponding ResourceDictionary (**System.Windows.xaml**). This will ensure that the native controls used in the Telerik ones will have the correct theme applied. In this case, any instance of the native controls which is separately defined will also get the Telerik theme.

**Merging the System.Windows.xaml file**

```XAML
	<Application.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/System.Windows.xaml"/>
				
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</Application.Resources>
```

To set the theme separately per control, you can merge the System.Windows.xaml resource in the `Resources` dictionary of the corresponding control.

**Setting a theme per control using implicit styles**

```XAML
	<CheckBox Content="CheckBox">	
		<CheckBox.Resources>
			<ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/System.Windows.xaml"/>
		</CheckBox.Resources>
	</CheckBox>
```

To avoid applying the theme to a specific native control after the global theming setting (in the App.xaml `Resources`), you can set its Style property to an `Style` object without any `Setters`.

**Disabling the default theming**

```XAML
	<CheckBox Content="CheckBox">	
		<CheckBox.Style>
			<Style TargetType="CheckBox"/>
		</CheckBox.Style>
	</CheckBox>
```

## Setting the Theme Using StyleManager

To set the theme per control, use the `StyleManager.Theme` attached property.

**Setting a theme per control using StyleManager**

```XAML
 	<CheckBox Content="CheckBox" telerik:StyleManager.Theme="Windows11" />
```

There is no global setting in the **StyleManager** that will apply the theme to all WPF native controls in the view. But this can be done by defining an implicit Style definitions for the needed types and setting the `StyleManager.Theme` property there.

**Setting the Telerik theme globally for all CheckBox controls in the view**

```XAML
	<Application.Resources>
	 	<Style TargetType="CheckBox">
			<Setter Property="telerik:StyleManager.Theme" Value="Windows11" />
		</Style>
   	</Application.Resources>
```

## See Also

* [Use StyleManager to Apply Theme on Native WPF Controls](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/stylemanager/common-styling-themes-mscontrols)
* [Set a Theme by Using Implicit Styles](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-setting-a-theme-overview)
* [Switch Themes at Runtime](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/how-to/styling-apperance-themes-runtime)
