-api-id | -api-type |
---|---|
P:Windows.UI.Xaml.Controls.StackPanel.Orientation |
winrt property |
Gets or sets the dimension by which child elements are stacked.
<StackPanel Orientation="Horizontal"/>
-or-
<StackPanel Orientation="Vertical"/>
One of the enumeration values that specifies the orientation of child elements. The default is Vertical.
The following example creates a horizontal list of items by setting the Orientation property to Horizontal.
[!code-xamlLayoutOvwStackPanel_2]