# Styling the Pane Header

The PaneHeader element displays the title of the selected pane in the given RadPaneGroup (for RadPaneGroups outside the DocumentHost), a menu and two buttons. For some more information, read the [Visual Structure](https://www.telerik.com/products/wpf/documentation/controls/raddocking/features/panes/visual-structure) article.

## Targeting the PaneHeader Element

In order to style all **PaneHeader** elements in a RadDocking, you should create a style targeting **PaneHeader**.

**Example 1: Creating an implicit style targeting PaneHeader**

```XAML
<Grid.Resources>
    

    <Style TargetType="telerik:PaneHeader">
        <Setter Property="Background" Value="Red" />
    </Style>
</Grid.Resources>

<Grid>
    <telerik:RadDocking>
        <telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer>
                <telerik:RadPaneGroup>
                    <telerik:RadPane Header="Pane 1" />
                    <telerik:RadPane Header="Test 2"/>
                    <telerik:RadPane Header="Test 3" />
                    <telerik:RadPane Header="Test 4" />
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking.DocumentHost>
        <telerik:RadSplitContainer >
            <telerik:RadPaneGroup >
                <telerik:RadPane Header="Pane 1" />
                <telerik:RadPane Header="Test 2"/>
                <telerik:RadPane Header="Test 3" />
                <telerik:RadPane Header="Test 4" />
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
        <telerik:RadSplitContainer InitialPosition="DockedRight" >
            <telerik:RadPaneGroup  >
                <telerik:RadPane Header="Pane 1" />
                <telerik:RadPane Header="Test 2"/>
                <telerik:RadPane Header="Test 3" />
                <telerik:RadPane Header="Test 4" />
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
    </telerik:RadDocking>
</Grid>
```

> caption PaneHeader with red background in the Office2016 theme

![PaneHeader with Red Background](https://www.telerik.com/products/wpf/documentation/assets/0f94e8a6cb09aebd6155dc25feca3918/raddocking_paneheader_styling.png)

> important You will notice that in **Figure 1** the PaneHeader in the left group is red, however the PaneHeader in the right group is blue. This is due to the fact that the right pane is [active](https://www.telerik.com/products/wpf/documentation/controls/raddocking/features/panes/activation-mode). Inside the ControlTemplate of the PaneHeader there are triggers/visual states, which set the Background when a pane becomes active and that value takes precedence over the value from the implicit style. In order to change this behavior, you can extract and modify the ControlTemplate of the PaneHeader for the theme(s) that you are using. For more information on how to do that read, the [Editing Control Templates](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-editing-control-templates) article.

## See Also

* [RadPane](https://www.telerik.com/products/wpf/documentation/controls/raddocking/features/panes/radpane)
* [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)
* [How to Add Icon to the RadPane's Header](https://www.telerik.com/products/wpf/documentation/controls/raddocking/how-to/add-icon-pane-header)
