Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 845 Bytes

stackpanel_orientation.md

File metadata and controls

34 lines (23 loc) · 845 Bytes
-api-id -api-type
P:Windows.UI.Xaml.Controls.StackPanel.Orientation
winrt property

Windows.UI.Xaml.Controls.StackPanel.Orientation

-description

Gets or sets the dimension by which child elements are stacked.

-xaml-syntax

<StackPanel Orientation="Horizontal"/>
-or-
<StackPanel Orientation="Vertical"/>

-property-value

One of the enumeration values that specifies the orientation of child elements. The default is Vertical.

-remarks

-examples

The following example creates a horizontal list of items by setting the Orientation property to Horizontal.

[!code-xamlLayoutOvwStackPanel_2]

-see-also