WPF TextBlock 文本纵向排列(旋转90度)

发布时间 2023-12-07 14:55:28作者: baivfhpwxf

文字旋转90度,纵向排列。

效果:

 

<TextBlock Text="压 降 (mV)" 
        VerticalAlignment="Center"
        TextWrapping="Wrap"
        FontSize="8">
    <TextBlock.LayoutTransform>
        <!--文字同样旋转90度-->
        <RotateTransform Angle="90"/>
    </TextBlock.LayoutTransform>
</TextBlock>