# Theming the ToolWindow

To modify the appearance of the ToolWindow you **have** to create a custom theme and place a style that targets the **ToolWindow** control in it. The topic assumes that you have already created a theme witha **ResourceDictionary** that will host the styles and the resources for your custom theme. To learn how to style it take a look at the [Styling the ToolWindow](https://www.telerik.com/products/wpf/documentation/controls/raddocking/theming/toolwindow) topic.

Copy the created style with all of the resources it uses and place it in the **ResourceDictionary** that represents the theme for your **RadDocking** control.

```XAML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    
    <Style x:Key="ToolWindowStyle" TargetType="telerik:ToolWindow">
        
    </Style>
</ResourceDictionary>
```

The next step is to declare the required namespaces in the resource dictionary.

```XAML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    
</ResourceDictionary>
```

```XAML
<Style TargetType="telerik:ToolWindow">
    
</Style>
```

```C#
public App()
{
    InitializeComponent();
    StyleManager.SetTheme(this.radDocking, new RadDockingTheme());
}
```

```VB.NET
Public Sub New()
	InitializeComponent()
	StyleManager.SetTheme(Me.radDocking, New Theme())
End Sub
```

Finally in order to make the style default for all of the **ToolWindow** controls you have to set it to the following value.

```XAML
<Style x:Key="{telerik:ThemeResourceKey ThemeType={x:Type local:RadDockingTheme}, ElementType={x:Type telerik:ToolWindow}}"
TargetType="{x:Type telerik:ToolWindow}">
    
</Style>
```

![WPF RadDocking Themed ToolWindow](https://www.telerik.com/products/wpf/documentation/assets/f16f280084500ba705af24c457f3c769/raddocking_themingtoolwindow_01.png)

## See Also

* [Theming - Overview](https://www.telerik.com/products/wpf/documentation/controls/raddocking/theming/overview)

* [Styling the ToolWindow](https://www.telerik.com/products/wpf/documentation/controls/raddocking/styles-and-templates/styling-the-toolwindow)

* [Tool Window](https://www.telerik.com/products/wpf/documentation/controls/raddocking/features/tool-window)

* [Docked/Floating Panes](https://www.telerik.com/products/wpf/documentation/controls/raddocking/features/panes/docked-floating-panes)
