-api-id | -api-type |
---|---|
P:Windows.UI.Xaml.Controls.WrapGrid.Orientation |
winrt property |
Gets or sets the direction in which child elements are arranged.
WrapGrid Orientation="orientationMemberName" />
A value of the enumeration. The default is Vertical.
The Orientation property specifies whether the grid adds its items in rows or columns before wrapping.
When the value is Vertical, the grid adds items in columns from top to bottom, then wraps from left to right, like this:
Item 1 | Item 4 | Item 7 |
Item 2 | Item 5 | Item 8 |
Item 3 | Item 6 | Item 9 |
When the value is Horizontal, the grid adds items in rows from left to right, then wraps from top to bottom, like this:
Item 1 | Item 2 | Item 3 |
Item 4 | Item 5 | Item 6 |
Item 7 | Item 8 | Item 9 |