2
我在文本塊上應用RotateTransform,以便它垂直顯示文本而不是水平,但它在未轉換時會水平佔用相同的空間。請建議解決方案,以消除這hozitonally sapce。文本塊採用相同的水平空間,甚至適用RotateTransform
<Border BorderBrush="#888888" BorderThickness="0,0,2,0">
<TextBlock FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="Bold" FontSize="15" Text="Menu" >
<TextBlock.RenderTransform>
<RotateTransform Angle="270" />
</TextBlock.RenderTransform>
</TextBlock>
</Border>