Если Вы просто надеетесь представлять набор на своем экземпляре, то использование метода get/метода set к переменной члена парламента, не занимающего официального поста походит на наиболее разумное решение меня (Ваша первая предложенная опция).
This is not possible with the Grid
control. Rows pass through all columns, and columns pass through all rows. As you've found, the RowSpan
and ColumnSpan
allow you to have a control span multiple rows or columns respectively.
One other potential workaround is to host one Grid
within another:
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Image/>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
</Grid>
</Grid>