如何垂直对齐 aLabel
和TextBlock
atTop
以便它们的第一行文本对齐?
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
</Grid.RowDefinitions>
<Label Grid.Column="0" VerticalAlignment="Top">Some Label:</Label>
<TextBlock Grid.Column="0" VerticalAlignment="Top">Some text<TextBlock>
</Grid>
上面的代码给了我这个:
垂直未对齐的标签和文本块文本 http://img156.imageshack.us/img156/4940/labeltextblock.png