Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
VariableSizedWrapGrid.Orientation Property
Definition
- Namespace:
- Microsoft.UI.Xaml.Controls
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the direction in which child elements are arranged.
public:
property Orientation Orientation { Orientation get(); void set(Orientation value); };
Orientation Orientation();
void Orientation(Orientation value);
public Orientation Orientation { get; set; }
var orientation = variableSizedWrapGrid.orientation;
variableSizedWrapGrid.orientation = orientation;
Public Property Orientation As Orientation
<VariableSizedWrapGrid Orientation="orientationMemberName" />
Property Value
A value of the enumeration. The default is Vertical.
Remarks
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 |
Applies to
Feedback
Was this page helpful?
