# Setting a Theme

This article will demonstrates how the user could easily apply one of the built-in themes to **RadTimeSpanPicker**.

> **RadTimeSpanPicker** like all other WPF Telerik controls supports styling using Implicit Styles. [Here](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-setting-a-theme-overview) you could find some more detailed information concerning Implicit Styles.

The first thing you need to do in order a theme to be applied correctly is to merge the following Xaml files:

* Telerik.Windows.Controls.xaml

* Telerik.Windows.Controls.Input.xaml

There are two apporaches that you could use in order to merge the files:

* The first one is directly from the theme assembly:

For example let's demonstrate how to apply Windows8 theme to **RadTimeSpanPicker** - please, notice that the Telerik.Windows.Themes.Windows8.dll should be added as well:

> caption Adding the needed references

![Rad Time Span Picker Setting Theme 01](https://www.telerik.com/products/wpf/documentation/assets/223a5a5e1c3f3e04bb4ba1869b6ab0ca/radtimespanpicker_setting_theme_01.png)

After that merge the xaml files in the App.xaml as shown in **Example 1**:

**Example 1: Merging the .xaml files**

```XAML
<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.xaml" />
            <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Input.xaml" />
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>
```

* The second appraoch that you could use in order to apply the desired theme is to add references to the required assemblies from Binaries.NoXaml folder. For that purpose a folder named Themes needs to be created. That folder should contain the corresponding .xaml files from Themes.Implicit/../Windows8/../Themes/ folder located in the installation folder:

> caption Copying the .Xaml files

`````
![Rad Time Span Picker Setting Theme 02](images/RadTimeSpanPicker_Setting_Theme_02.png)

__Example 2__ shows how to merge the copied .xaml files.            

__Example 2: Merging the .xaml files__

````external-docs-snippet radtimespanpicker-styles-and-templates-setting-theme-block_2-xaml
````
`````

Either way you choose, the end result will be the following:

> caption TimeSpanPicker with Windows8 theme applied

![Rad Time Span Picker Setting Theme 03](https://www.telerik.com/products/wpf/documentation/assets/a6e11a113ddc73080ee3a8e715ea6c99/radtimespanpicker_setting_theme_03.png)

## See Also

* [Getting Started](https://www.telerik.com/products/wpf/documentation/controls/radtimespanpicker/getting-started)

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