Hello.
I have simple application. In this application is one RadTabControl with twor RadTabItems and in both are RadDockings with one RadPane in each. Here is the code:
On each RadPane is applied simple Style, which changes also the TitleTemplate. Here is it:
And here is the problem. When I start my application, the first RadPane in first RadTabItem is with applied style, but when I select second RadTabItem, the RadPane in this item is withou applied style.
Can you please tell me where is the problem or what I'm doing wrong ?
Thank You.
Stefan.
I have simple application. In this application is one RadTabControl with twor RadTabItems and in both are RadDockings with one RadPane in each. Here is the code:
| <Grid> |
| <telNavigationControls:RadTabControl x:Name="mainTabControl" Grid.Row="0" HorizontalAlignment="Stretch" |
| VerticalAlignment="Stretch" DisplayMemberPath="Content" DropDownDisplayMode="Collapsed" ScrollMode="Viewport" |
| Background="#dde1ea" telControlsControls:StyleManager.Theme="Windows7" SnapsToDevicePixels="True" SelectedIndex="0"> |
| <!--FIRST TAB ITEM--> |
| <telNavigationControls:RadTabItem Header="Tab 1"> |
| <telNavigationControls:RadTabItem.Content> |
| <telDockingControls:RadDocking HasDocumentHost="False"> |
| <telDockingControls:RadSplitContainer > |
| <telDockingControls:RadPaneGroup > |
| <telDockingControls:RadPane Title="Tab1" Style="{StaticResource TelerikRadPaneStyle}"/> |
| </telDockingControls:RadPaneGroup> |
| </telDockingControls:RadSplitContainer> |
| </telDockingControls:RadDocking> |
| </telNavigationControls:RadTabItem.Content> |
| </telNavigationControls:RadTabItem> |
| <!--SECOND TAB ITEM--> |
| <telNavigationControls:RadTabItem Header="Tab 2"> |
| <telNavigationControls:RadTabItem.Content > |
| <telDockingControls:RadDocking HasDocumentHost="False"> |
| <telDockingControls:RadSplitContainer > |
| <telDockingControls:RadPaneGroup > |
| <telDockingControls:RadPane Title="Tab2" Style="{StaticResource TelerikRadPaneStyle}"/> |
| </telDockingControls:RadPaneGroup> |
| </telDockingControls:RadSplitContainer> |
| </telDockingControls:RadDocking> |
| </telNavigationControls:RadTabItem.Content> |
| </telNavigationControls:RadTabItem> |
| </telNavigationControls:RadTabControl> |
| </Grid> |
On each RadPane is applied simple Style, which changes also the TitleTemplate. Here is it:
| <Style x:Key="TelerikRadPaneStyle" TargetType="{x:Type telDockingControls:RadPane}"> |
| <Setter Property="CanUserPin" Value="False" /> |
| <Setter Property="CanFloat" Value="True" /> |
| <Setter Property="CanUserClose" Value="False" /> |
| <Setter Property="ContextMenuTemplate"> |
| <Setter.Value> |
| <DataTemplate> |
| <telNavigationControls:RadContextMenu Visibility="Collapsed" /> |
| </DataTemplate> |
| </Setter.Value> |
| </Setter> |
| <Setter Property="TitleTemplate"> |
| <Setter.Value> |
| <DataTemplate > |
| <Grid > |
| <Grid.ColumnDefinitions> |
| <ColumnDefinition Width="Auto" /> |
| </Grid.ColumnDefinitions> |
| <Button Grid.Column="0" Width="100" Content="Test Button" HorizontalAlignment="Center"/> |
| </Grid> |
| </DataTemplate> |
| </Setter.Value> |
| </Setter> |
| </Style> |
And here is the problem. When I start my application, the first RadPane in first RadTabItem is with applied style, but when I select second RadTabItem, the RadPane in this item is withou applied style.
Can you please tell me where is the problem or what I'm doing wrong ?
Thank You.
Stefan.