【发布时间】:2019-01-20 18:13:15
【问题描述】:
我有一个 WPF 扩展器,并在其标题中放置了一个 TextBlock。现在我正在尝试将 TextBlock 文本置于垂直方向。例如,如果文本是“设置”我想把它放在下面的方式:
S
E
T
T
I
N
G
S
扩展 xaml 代码:
<Expander Grid.Row="0"
Grid.RowSpan="2"
Grid.Column="1"
Width="25"
ExpandDirection="Left">
<Expander.Header>
<TextBlock Text="Settings">
<TextBlock.LayoutTransform>
<RotateTransform Angle="-90"/>
</TextBlock.LayoutTransform>
</TextBlock>
</Expander.Header>
</Expander>
【问题讨论】:
标签: wpf .net-3.5 expander visual-studio-2008-sp1