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

Title disappears when Radpane is using Header and Title Template

1 Answer 222 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Raj
Top achievements
Rank 1
Raj asked on 28 May 2013, 07:16 AM
Hello,
When we use template to decorate the Title/Header and its working fine as long as the pane doesn't gets detached.  The moment the radpane gets detached manually, the title/header disappears.  Radpane's are loading dynamically through the config file arrangements.  The header template is defined in the resource file and leveraged using properties defined.

Your help is highly appreciated!
Thanks in advance!
-Raj

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 28 May 2013, 10:44 AM
Hello Raj,

The Title and Header properties have different use in the Docking control by design. When the Pane is docked or floating it is showing the Title property and when is attached to the DocumentHost it is showing the Header property. I would suggest that you set one DataTamplate for the Pane HeaderTemplate and TitleTemplate properties to make them look the same way - please see the example below:

<Window.Resources>
    <DataTemplate x:Key="CustomTemplate">
        <StackPanel>
            <TextBlock Text="Custom Title and Header template."/>
        </StackPanel>
    </DataTemplate>
</Window.Resources>
<Grid>
    <telerik:RadDocking>
        <telerik:RadSplitContainer>
            <telerik:RadPaneGroup>
                <telerik:RadPane HeaderTemplate="{StaticResource CustomTemplate}" TitleTemplate="{StaticResource CustomTemplate}" />
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
    </telerik:RadDocking>
</Grid>

Hope this helps. If you have any other questions do not hesitate to contact us again.

Regards,
Kalin
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Docking
Asked by
Raj
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or