I have a stackpanel with textblock and image. I need to align the textblock to center with rotation(90 degree).Like this,
But, after rotate the textblock i am always getting result like this,
this is the XAML code i am using,
<StackPanel Orientation="Horizontal">
<Image Width="120" Source="ms-appx:///Assets/mail.jpg"/>
<TextBlock Text="send mail" FontSize="15" Margin="25,0,0,0" >
<TextBlock.RenderTransform>
<RotateTransform Angle="90"/>
</TextBlock.RenderTransform>
</TextBlock>
</StackPanel>
how can i align my textblock to center..?