WPF: Is it possible to do a row/column span in UniformGrid?

11,872

No. There are no attached properties that will allow you to do that.

You could create a subclass of the UniformGrid and add them but you would have to handle all the arranging of the child controls.

It will be pretty hard to define what should happen to elements that span multiple columns when they have to wrap to the next line.

Share:
11,872

Related videos on Youtube

matori82
Author by

matori82

Updated on June 04, 2022

Comments

  • matori82
    matori82 almost 2 years

    Is it possible to do a row/column span in UniformGrid? Using Grid attached properties

    Grid.RowSpan

    and

    Grid.ColumnSpan

    doesn't work on UniformGrid.

  • h.m.i.13
    h.m.i.13 about 2 years
    It seems to me that this has changed in the meantime, see docs.microsoft.com/en-us/windows/communitytoolkit/controls/…
  • Emond
    Emond about 2 years
    @h.m.i.13: I do not see the ColumnSpan nor the RowSpan in the documentation you linked to.