0
我有一个固定数量的行的网格,但列不固定。那么我如何设置列定义。是否有任何方法在xaml中编写它?如何在网格中定义列定义?
我有一个固定数量的行的网格,但列不固定。那么我如何设置列定义。是否有任何方法在xaml中编写它?如何在网格中定义列定义?
你有两行定义和列定义:
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="250" />
<ColumnDefinition Width="150" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="2*" />
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
</Grid