后台代码,动态增加,Grid 行
<Grid x:Name="Round" Grid.Row="1" ShowGridLines="False" > <Grid.RowDefinitions> <RowDefinition Height="0.7*"/> <RowDefinition Height="0.7*"/> <RowDefinition /> <RowDefinition /> <RowDefinition /> <RowDefinition /> <RowDefinition /> <RowDefinition Height="0.7*"/> <RowDefinition /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="0.5*"/> <ColumnDefinition /> <ColumnDefinition /> <ColumnDefinition /> <ColumnDefinition /> <ColumnDefinition /> <ColumnDefinition /> <ColumnDefinition /> <ColumnDefinition /> <ColumnDefinition Width="2*" /> </Grid.ColumnDefinitions></>