# Theming the Pane Header

To modify the appearance of the **PaneHeader** you have to create a custom theme and place a style that targets the **PaneHeader** control in it. The topic assumes that you have already created a theme with a **ResourceDictionary** that will host the styles and the resources for your custom theme. If not take a look at the overview section about [creating the theme](https://www.telerik.com/products/wpf/documentation/controls/raddocking/theming/overview#creating-the-theme). The topic also assumes that you have already created the style that will be used for the **PaneHeader** control. To learn how to style it take a look at the [Styling the Pane Header](https://www.telerik.com/products/wpf/documentation/controls/raddocking/styles-and-templates/styling-the-pane-header) 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="PaneHeaderStyle" TargetType="telerik:PaneHeader">
        
    </Style>
</ResourceDictionary>
```

The next step is to declare the required namespaces in the **ResourceDictionary**.

```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:PaneHeader">
    
</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

Private Property radDocking As DependencyObject
```

Finally in order to make the style default for all of the **PaneHeader** 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:PaneHeader}}"
       TargetType="{x:Type telerik:PaneHeader}">
    
</Style>
```

Here is a snapshot of a sample result.

![WPF RadDocking Themed Pane Header](https://www.telerik.com/products/wpf/documentation/assets/afd3e2eb240144458d709274c0b71d87/raddocking_themingpaneheader_01.png)

## See Also

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

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

* [How to Add Icon to the RadPane's Header](https://www.telerik.com/products/wpf/documentation/controls/raddocking/how-to/add-icon-pane-header)

* [How to Add Buttons to the Pane Header](https://www.telerik.com/products/wpf/documentation/controls/raddocking/how-to/add-buttons-to-the-pane-headers)
