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

1

22

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.

Pilliwinks answered 15/5, 2012 at 14:57 Comment(1)
If they did exist, they would be UniformGrid.RowSpan and UniformGrid.ColumnSpan, since you are not using a GridAbele
I
28

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.

Indian answered 15/5, 2012 at 15:12 Comment(3)
It seems to me that this has changed in the meantime, see learn.microsoft.com/en-us/windows/communitytoolkit/controls/…Kenti
@h.m.i.13: I do not see the ColumnSpan nor the RowSpan in the documentation you linked to.Indian
@Kenti It looks like that is for UWP and provided as part of Microsoft.Toolkit.Uwp.UI.ControlsEliezer

© 2022 - 2024 — McMap. All rights reserved.