2
次のコードでは、テキストABCDEはグリッドの先頭から始まり、グリッドの外側に文字を配置します。回転したTextBlockを上に固定する方法は?
グリッドの内側にテキストが残り、最後の文字がグリッドの最上部で終わるようにするにはどうすればよいですか?
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Grid>
<TextBlock Text="ABCDE" >
<TextBlock.RenderTransform>
<RotateTransform Angle="-90" />
</TextBlock.RenderTransform>
</TextBlock>
</Grid>
</Window>
中に適用される
LayoutTransform
を使用します? – Jay