wpf textblock vertical text alignment code example
Example: vertical text wpf
<TextBlock Text="SomeText" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock.LayoutTransform>
<RotateTransform Angle="-90"/>
</TextBlock.LayoutTransform>
</TextBlock>
//click linked article for explanation between LayoutTransform and RenderTransform