Hi everyone,
I'm in front of a strange issue...
I develop a WPF application with Prism/MEF and MVVM pattern, for this one I'm using the Docking control.
As Prism pattern usecase, I have region with many views, those views are not UserControl but RadPanel.
For every views, I'm using a HeaderTemplate to bind a header title and tooltip.
Here's the view code (MyView.xaml) :
And the HeaderTemplate code (App.xaml) :
It's working corretly in the DocumentHost region (default position), but when I move the window to Anchor it anywhere else, pinned and unpinned, style of all the window is changed... Please see the attached image for illustration.
Anyone have a solution for this problem ?
Thanks in advance.
Regards.
Guillaume
I'm in front of a strange issue...
I develop a WPF application with Prism/MEF and MVVM pattern, for this one I'm using the Docking control.
As Prism pattern usecase, I have region with many views, those views are not UserControl but RadPanel.
For every views, I'm using a HeaderTemplate to bind a header title and tooltip.
Here's the view code (MyView.xaml) :
<telerik:RadPane Style="{StaticResource RadPaneHeaderStyle}">And the HeaderTemplate code (App.xaml) :
<Style x:Key="RadPaneHeaderStyle" TargetType="telerik:RadPane"> <Setter Property="Header" Value="{Binding HeaderTitle, Mode=TwoWay}" /> <Setter Property="HeaderTemplate"> <Setter.Value> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding}" ToolTip="{Binding}" /> </StackPanel> </DataTemplate> </Setter.Value> </Setter></Style>It's working corretly in the DocumentHost region (default position), but when I move the window to Anchor it anywhere else, pinned and unpinned, style of all the window is changed... Please see the attached image for illustration.
Anyone have a solution for this problem ?
Thanks in advance.
Regards.
Guillaume