【发布时间】:2012-01-09 16:46:50
【问题描述】:
我有 2 个带有分离器的相同网格:
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Button Grid.Row="0" />
<Button Grid.Row="2" />
<GridSplitter Grid.Row="1" Height="4" HorizontalAlignment="Stretch" />
</Grid>
如何让它们同步调整大小?这样两个网格的行高将相同。
【问题讨论】:
-
它们是否相邻?
-
它们位于 TabControl 的不同选项卡上
标签: c# .net wpf xaml data-binding