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="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 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">
<Application.Resources>
<DataTemplate x:Key="HeaderTemplateGeometry">
<StackPanel Orientation="Horizontal">
<Image Source="{Binding VmImage}" Width="16" Height="16" Margin="2"/>
<TextBlock Text="{Binding DisplayName}" Margin="2" />
</StackPanel>
</DataTemplate>
</Application.Resources>
</Application>
And here is the RadPane:
<Controls:RadPane x:Class="Rap1D.Rap1D_WPF.CustomEditor.CustomEditor"
[Stuff deleted]
HeaderTemplate="{StaticResource HeaderTemplateGeometry}"
Style="{StaticResource PaneStyle}">
[Stuff deleted]
</Controls:RadPane>
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="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 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">
<Application.Resources>
<DataTemplate x:Key="HeaderTemplateGeometry">
<StackPanel Orientation="Horizontal">
<Image Source="{Binding VmImage}" Width="16" Height="16" Margin="2"/>
<TextBlock Text="{Binding DisplayName}" Margin="2" />
</StackPanel>
</DataTemplate>
</Application.Resources>
</Application>
And here is the RadPane:
<Controls:RadPane x:Class="Rap1D.Rap1D_WPF.CustomEditor.CustomEditor"
[Stuff deleted]
HeaderTemplate="{StaticResource HeaderTemplateGeometry}"
Style="{StaticResource PaneStyle}">
[Stuff deleted]
</Controls:RadPane>