Orientation Property

VirtualizingStackPanel.Orientation Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a value that describes the horizontal or vertical orientation of stacked content.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public Orientation Orientation { get; set; }
<VirtualizingStackPanel Orientation="Horizontal"/>
- or -
<VirtualizingStackPanel Orientation="Vertical"/>

Property Value

Type: System.Windows.Controls.Orientation
The Orientation of child content. The default is Vertical.

Dependency property identifier field: OrientationProperty

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft