I'm trying to replace the standard RadPane header with one of my own. I have followed a blog example but can't get it to work. The close button appears when the pane is hidden but when it is visible the default header is shown. What am I doing wrong?
    
Cheers
Steve
                                | <Window xmlns:my="clr-namespace:WpfTelerikDocking" | 
| x:Class="WpfTelerikDocking.MainWindow" | 
| 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" | 
| Title="Docking Test" Height="600" Width="1024"> | 
| <DockPanel LastChildFill="True"> | 
| <Menu DockPanel.Dock="Top"> | 
| <MenuItem Header="_File"/> | 
| <MenuItem Header="_Help"/> | 
| </Menu> | 
| <StatusBar DockPanel.Dock="Bottom"> | 
| <StatusBarItem Margin="5,0,5,0" Content="Status Info"/> | 
| </StatusBar> | 
| <Grid> | 
| <telerik:RadDocking Name="radDocking1" HasDocumentHost="False"> | 
| <telerik:RadDocking.Resources> | 
| <DataTemplate x:Key="PaneWithCloseButton_HeaderTemplate"> | 
| <StackPanel Orientation="Horizontal"> | 
| <ContentPresenter Content="{Binding}" /> | 
| <Button Content="X" Width="18" Height="18" | 
| /> | 
| </StackPanel> | 
| </DataTemplate> | 
| </telerik:RadDocking.Resources> | 
| <telerik:RadSplitContainer Name="LeftContainer" InitialPosition="DockedLeft"> | 
| <telerik:RadPaneGroup> | 
| <telerik:RadPane Header="PANE" | 
| HeaderTemplate="{StaticResource PaneWithCloseButton_HeaderTemplate}"> | 
| <TextBlock Text="Text content" /> | 
| </telerik:RadPane> | 
| </telerik:RadPaneGroup> | 
| </telerik:RadSplitContainer> | 
| <telerik:RadSplitContainer Name="RightContainer" InitialPosition="DockedRight"> | 
| <telerik:RadPaneGroup> | 
| <telerik:RadPane Header="Map"> | 
| </telerik:RadPane> | 
| </telerik:RadPaneGroup> | 
| </telerik:RadSplitContainer> | 
| </telerik:RadDocking> | 
| </Grid> | 
| </DockPanel> | 
| </Window> | 
Cheers
Steve
