<Grid Grid.IsSharedSizeScope="True">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"
SharedSizeGroup="g1"></ColumnDefinition>
<ColumnDefinition Width="9*"
SharedSizeGroup="g2"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Label>
<TextBlock Name="txt132"
Text="3333333333333333333333333333333333333"
TextTrimming="CharacterEllipsis"></TextBlock>
</Label>
<Label Grid.Column="1">
<TextBlock Name="txt13112"
Text="111"
TextTrimming="CharacterEllipsis"></TextBlock>
</Label>
</Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"
SharedSizeGroup="g1"></ColumnDefinition>
<ColumnDefinition Width="9*"
SharedSizeGroup="g2"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Label>
<TextBlock Name="txt132"
Text="3333333333333333333333333333333333333"
TextTrimming="CharacterEllipsis"></TextBlock>
</Label>
<Label Grid.Column="1">
<TextBlock Name="txt13112"
Text="111"
TextTrimming="CharacterEllipsis"></TextBlock>
</Label>
</Grid>
first, the with must be "*", not fixed width, you will see TextTrimming does not work, when you reomve the
IsSharedSizeScope, it works

浙公网安备 33010602011771号