Orientation Enumeration
Collapse the table of content
Expand the table of content

Orientation Enumeration

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

Defines the different orientations that a control or layout can have.

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

public enum Orientation
<object property="enumMemberName"/>

Member nameDescription
VerticalThe control or layout should be vertically oriented.
HorizontalThe control or layout should be horizontally oriented.

The Orientation determines if an object will arrange itself in the horizontal or vertical direction and can be set on a Slider, StackPanel, or ScrollBar object.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2018 Microsoft