matori82
matori82

Reputation: 3829

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

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.

Upvotes: 22

Views: 14496

Answers (1)

Emond
Emond

Reputation: 50672

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.

Upvotes: 28

Related Questions