Thursday 17 May 2012

Rotate Text in WPF


<TextBlock
        Text="Some Text"
        Grid.Row="8"                                                              
        FontSize="9"                                                       
        Height="25"
        Width="auto"                                                                                                                              
        Grid.Column="2"
        VerticalAlignment="Bottom"
        TextAlignment="Center"
        Margin="5,0,-260,-35">
  <TextBlock.RenderTransform>
<TransformGroup>                                       
 <RotateTransform Angle="-90"/>
       </TransformGroup>                                          
 </TextBlock.RenderTransform>
</TextBlock>

No comments:

Post a Comment