This question is locked. New answers and comments are not allowed.
Hello,
Please see the following sample. My goal is to flip the header (when the RadPane is not pinned) so that it's text is written from TopToBottom (notice "h3"). The problem is that when the RadPane is pinned, the same HeaderTemplate is used which displays the text upside down (notice "h1"). "h2" and "h4" are the default telerik orientations which are backwards when compared to a docking application like Visual Studio, for example...
Is there a simple orientation property that I am missing? Or is there a better way to accomplish this? I noticed the HeaderTemplateSelector - I think I could get around it with a converter bound to RadPane.IsPinned and a template selector but that might be a little too hacky.
<
UserControl
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
x:Class
=
"SilverlightApplication12.MainPage"
Width
=
"400"
Height
=
"300"
>
<
UserControl.Resources
>
<
DataTemplate
x:Key
=
"dt_TitleTemplate"
>
<
TextBlock
Text
=
"{Binding}"
Foreground
=
"#FF455B75"
FontSize
=
"11"
FontWeight
=
"Bold"
FontFamily
=
"Century Gothic"
VerticalAlignment
=
"Center"
/>
</
DataTemplate
>
<
DataTemplate
x:Key
=
"dt_HeaderTemplate"
>
<
TextBlock
Text
=
"{Binding}"
Foreground
=
"#FF455B75"
FontSize
=
"11"
FontFamily
=
"Century Gothic"
VerticalAlignment
=
"Center"
RenderTransformOrigin
=
"0.5,0.5"
>
<
TextBlock.RenderTransform
>
<
CompositeTransform
ScaleX
=
"-1"
ScaleY
=
"-1"
/>
</
TextBlock.RenderTransform
>
</
TextBlock
>
</
DataTemplate
>
</
UserControl.Resources
>
<
Border
x:Name
=
"LayoutRoot"
Background
=
"White"
Padding
=
"10"
>
<
telerik:RadDocking
>
<
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
Title
=
"tMAIN"
Header
=
"hMAIN"
CanUserClose
=
"False"
CanFloat
=
"False"
CanUserPin
=
"False"
>
<
Border
Background
=
"YellowGreen"
BorderBrush
=
"Green"
BorderThickness
=
"2"
>
<
TextBlock
Text
=
"MAIN"
Foreground
=
"Green"
FontSize
=
"30"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
TextAlignment
=
"Center"
/>
</
Border
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
InitialPosition
=
"DockedRight"
>
<
telerik:RadPaneGroup
x:Name
=
"grpRight"
telerik:RadDocking.SerializationTag
=
"grpRight"
TabOrientation
=
"Horizontal"
TabStripPlacement
=
"Bottom"
>
<
telerik:RadPane
IsPinned
=
"True"
Title
=
"t1"
TitleTemplate
=
"{StaticResource dt_TitleTemplate}"
Header
=
"h1"
HeaderTemplate
=
"{StaticResource dt_HeaderTemplate}"
CanUserClose
=
"False"
CanFloat
=
"False"
CanDockInDocumentHost
=
"False"
ContextMenuTemplate
=
"{x:Null}"
>
<
Border
Background
=
"Pink"
BorderBrush
=
"Red"
BorderThickness
=
"2"
>
<
TextBlock
Text
=
"1"
Foreground
=
"Red"
FontSize
=
"30"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
TextAlignment
=
"Center"
/>
</
Border
>
</
telerik:RadPane
>
<
telerik:RadPane
IsPinned
=
"True"
Title
=
"t2"
Header
=
"h2"
CanUserClose
=
"False"
CanFloat
=
"False"
CanDockInDocumentHost
=
"False"
ContextMenuTemplate
=
"{x:Null}"
telerik:RadDocking.SerializationTag
=
"paneNotes"
>
<
Border
Background
=
"LightBlue"
BorderBrush
=
"Blue"
BorderThickness
=
"2"
>
<
TextBlock
Text
=
"2"
Foreground
=
"Blue"
FontSize
=
"30"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
TextAlignment
=
"Center"
/>
</
Border
>
</
telerik:RadPane
>
<
telerik:RadPane
IsPinned
=
"False"
Title
=
"t3"
TitleTemplate
=
"{StaticResource dt_TitleTemplate}"
Header
=
"h3"
HeaderTemplate
=
"{StaticResource dt_HeaderTemplate}"
CanUserClose
=
"False"
CanFloat
=
"False"
CanDockInDocumentHost
=
"False"
ContextMenuTemplate
=
"{x:Null}"
>
<
Border
Background
=
"PaleGoldenrod"
BorderBrush
=
"Gold"
BorderThickness
=
"2"
>
<
TextBlock
Text
=
"3"
Foreground
=
"Gold"
FontSize
=
"30"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
TextAlignment
=
"Center"
/>
</
Border
>
</
telerik:RadPane
>
<
telerik:RadPane
IsPinned
=
"False"
Title
=
"t4"
Header
=
"h4"
CanUserClose
=
"False"
CanFloat
=
"False"
CanDockInDocumentHost
=
"False"
ContextMenuTemplate
=
"{x:Null}"
>
<
Border
Background
=
"Plum"
BorderBrush
=
"Fuchsia"
BorderThickness
=
"2"
>
<
TextBlock
Text
=
"4"
Foreground
=
"Fuchsia"
FontSize
=
"30"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
TextAlignment
=
"Center"
/>
</
Border
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
</
Border
>
</
UserControl
>
asdasd