Title disappears when Radpane is using Header and Title Template

2 posts, 0 answers
  1. Raj
    Raj avatar
    9 posts
    Member since:
    Oct 2012

    Posted 28 May 2013 Link to this post

    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
  2. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 28 May 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top