I have an WPF expander, and I have placed in its header a TextBlock. Now I am trying to put TextBlock text in vertical orientation. For example, if the text is "Settings" I want to put it in the following way:
S
E
T
T
I
N
G
S
Expander xaml code:
<Expander Grid.Row="0"
Grid.RowSpan="2"
Grid.Column="1"
Width="25"
ExpandDirection="Left">
<Expander.Header>
<TextBlock Text="Settings">
<TextBlock.LayoutTransform>
<RotateTransform Angle="-90"/>
</TextBlock.LayoutTransform>
</TextBlock>
</Expander.Header>
</Expander>