Hello,
I am having problems applying a template to the DocumentHostTemplate of the RadPaneGroup control with the Q3 release.
Basically, my template is being ignored and the default telerik template is used.
<ControlTemplate x:Key="JPaneGroupDocumentTemplate" TargetType="telerikDocking:RadPaneGroup"> |
<Grid> |
<Grid.RowDefinitions> |
<RowDefinition Height="auto"/> |
<RowDefinition Height="*"/> |
</Grid.RowDefinitions> |
<!-- VSM removed to save space... --> |
<Border BorderBrush="{StaticResource JPaneBorderBrush}" BorderThickness="0, 0, 0, 1" Background="{StaticResource JDockBackground}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="{TemplateBinding BackgroundVisibility}"/> |
<ItemsPresenter x:Name="ItemsPresenterElement" Margin="0" Grid.Row="0"/> |
<Border x:Name="border" Grid.Row="1" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="0, 0, 3, 3"> |
<ContentPresenter x:Name="ContentElement" Content="{TemplateBinding SelectedContent}" ContentTemplate="{TemplateBinding SelectedContentTemplate}"/> |
</Border> |
<Telerik_Windows_Controls_Docking:RadGridResizer x:Name="DockResizer" HorizontalAlignment="Left" VerticalAlignment="Stretch" Visibility="Collapsed" Grid.RowSpan="2" Placement="Left" ShowsPreview="True"/> |
</Grid> |
</ControlTemplate> |
<Style TargetType="telerikDocking:RadPaneGroup"> |
<Setter Property="Template" Value="{StaticResource PaneGroupTemplate}"/> |
<Setter Property="BottomTemplate" Value="{StaticResource PaneGroupTemplate}"/> |
<Setter Property="TopTemplate" Value="{StaticResource JPaneGroupDocumentTemplate}"/> |
<Setter Property="DocumentHostTemplate" Value="{StaticResource JPaneGroupDocumentTemplate}"/> |
<Setter Property="LeftTemplate" Value="{StaticResource PaneGroupTemplate}"/> |
<Setter Property="RightTemplate" Value="{StaticResource PaneGroupTemplate}"/> |
<Setter Property="ItemsPanel"> |
<Setter.Value> |
<ItemsPanelTemplate> |
<Telerik_Windows_Controls_Primitives:TabStripPanel/> |
</ItemsPanelTemplate> |
</Setter.Value> |
</Setter> |
<Setter Property="BorderThickness" Value="1, 0, 1, 1"/> |
<Setter Property="BorderBrush" Value="{StaticResource JPaneBorderBrush}"/> |
<Setter Property="Background" Value="{StaticResource JPaneContentBackground}"/> |
<Setter Property="HorizontalAlignment" Value="Stretch"/> |
<Setter Property="VerticalAlignment" Value="Stretch"/> |
<Setter Property="Align" Value="Left"/> |
<Setter Property="TabStripPlacement" Value="Bottom"/> |
<Setter Property="AllTabsEqualHeight" Value="True"/> |
<Setter Property="BackgroundVisibility" Value="Visible"/> |
<Setter Property="MinWidth" Value="5"/> |
<Setter Property="MinHeight" Value="5"/> |
</Style> |
My PaneGroupTemplate is being applied though, so the Style must be loading correctly via the StyleManager.
I've been struggling with this for a number of hours now, and as it works on my Q2 build and not Q3 I'm really at a loss!
Many thanks,
James.