0
假设我在XAML中定义了一个网格,如:如何在代码中的特定位置添加子控件到网格?
<Grid x:Name="LayoutRoot" Background="White">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
</Grid>
那么我想孩子控制代码添加到列= 0格,行= 1落后。
如何实现它?