Orientation Property
Collapse the table of content
Expand the table of content

ScrollBar.Orientation Property

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

Gets or sets whether the ScrollBar is displayed horizontally or vertically.

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

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

Property Value

Type: System.Windows.Controls.Orientation
An Orientation enumeration value that defines whether the ScrollBar is displayed horizontally or vertically. The default is Horizontal.

Dependency property identifier field: OrientationProperty

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft