【发布时间】:2012-08-24 19:43:31
【问题描述】:
我为 windows-phone 开发应用程序, 我想创建 2 行 2 列的表 我为此表创建 xaml 代码
<Grid Background="White">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions/>
</Grid>
我想在代码中创建这个网格
Grid chat_userpicgrid = new Grid();
newgrid.Children.Add(chat_userpicgrid);
但我不知道如何创建 RowDefinitions 和 ColumnDefinitions。
【问题讨论】:
标签: xaml windows-phone