This is a migrated thread and some comments may be shown as answers.

The RadPane Style is not applied if it is in the RadTabControl and next RadTabItem

3 Answers 129 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Stefan Babinec
Top achievements
Rank 1
Stefan Babinec asked on 16 Apr 2010, 12:11 PM
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:
<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.



3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 21 Apr 2010, 11:47 AM
Hello Stefan,

 I logged this problem in PITS and you can track when it is resolved there. We apologize for the inconvenience caused.

Kind regards,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Stefan Babinec
Top achievements
Rank 1
answered on 05 May 2010, 11:16 AM
Hi Miroslav.

Can you please write me the exact name of this issue in the PITS ?

Thanks a lot.

Stefan.
0
Miroslav Nedyalkov
Telerik team
answered on 05 May 2010, 01:13 PM
Hi Stefan,

 The name of the item is "When Docking control not visible, but added to the visual tree and after that it is shown some visual gliches appear.".

Best wishes,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Docking
Asked by
Stefan Babinec
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Stefan Babinec
Top achievements
Rank 1
Share this question
or