3
當我使用跨越控件的列和列的SharedSizeGroup創建網格時,網格會'心智'地跳動並最大化cpu核心。在Wpf網格中將SharedSizeGroup與ColumnSpan結合使用
我確定有一個很好的理由,爲什麼這不起作用,但我想不起來!我還能如何實現這種尺寸佈局?
<Grid IsSharedSizeScope="True">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" SharedSizeGroup="Columns"/>
<ColumnDefinition Width="Auto" SharedSizeGroup="Columns"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Label Grid.Column="0">Blah</Label>
<Label Grid.Column="1">Blah Blah Blah Blah</Label>
<Label Grid.Row="1" Grid.ColumnSpan="2">ajsgdeererajgsfdg dfg df gdfg djgsad</Label>
</Grid>
完美謝謝! – 2011-02-03 09:01:36