How to 'force refresh' for a RadPane header?

2 posts, 0 answers
  1. Anders
    Anders avatar
    80 posts
    Member since:
    Dec 2010

    Posted 28 Mar 2012 Link to this post

    Hi telerik,

    We are using a RadPane for a sort of Property Editor depending on the selection in a treeview. Works well!

    Now, however, we want the RadPane header to contain an image corresponding to selection in tree and it appears that RadPane header is not refreshed when the RadPane gets a new data context (before the header was a static text and we didn't need any chages to appear).

    Is there a way to tell the RadPane to update it's header?

    Don't know if it's relevant, but the header is formattet through a template defined in App.xaml:

    <Application x:Class="Rap1D.Rap1D_WPF.App" xmlns="" xmlns:x="" xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking" xmlns:Controls1="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls">
            <DataTemplate x:Key="HeaderTemplateGeometry">
                <StackPanel Orientation="Horizontal">
                    <Image Source="{Binding VmImage}" Width="16" Height="16" Margin="2"/>
                    <TextBlock Text="{Binding DisplayName}" Margin="2" />

    And here is the RadPane:

    <Controls:RadPane x:Class="Rap1D.Rap1D_WPF.CustomEditor.CustomEditor"
                 [Stuff deleted]
                 HeaderTemplate="{StaticResource HeaderTemplateGeometry}"                  
                 Style="{StaticResource PaneStyle}">
                 [Stuff deleted]
  2. Georgi
    Georgi avatar
    344 posts

    Posted 30 Mar 2012 Link to this post

    Hi Anders,

    I am sending you my project where I have tried to reproduce it, but without much success. It is strange because the binding should work and you should not need to update the header manually. Can you, please check whether the binding is working properly and for example if you move, pin-unpin, dock or undock the pane whether the header is updated?

    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft R3 2016 release webinar banner
Back to Top