WPF: Как объединить строки в столбце (альтернатива rowspan)?

Если Вы просто надеетесь представлять набор на своем экземпляре, то использование метода get/метода set к переменной члена парламента, не занимающего официального поста походит на наиболее разумное решение меня (Ваша первая предложенная опция).

10
задан mark smith 27 September 2009 в 12:57
поделиться

1 ответ

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>
11
ответ дан 4 December 2019 в 00:25
поделиться
Другие вопросы по тегам:

Похожие вопросы: