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.
The UniformGrid control is a responsive layout control which arranges items in a evenly-spaced set of rows or columns to fill the total available display space. Each cell in the grid, by default, will be the same size.
WPF Grid panel enables you to arrange children elements in cells defined by rows and columns. In the code example of this article, we will learn Grid layout and its properties in WPF using C# and XAML.
You can span across multiple rows and columns using the Grid. RowSpan and Grid. ColumnSpan attached properties. The default value for both these properties is 1. The Grid will attempt to assign as many row spans or column spans as it can up to the amount specified by the Grid.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With