ScrollBar.Orientation property

Applies to Windows and Windows Phone

Gets or sets a value that indicates whether the ScrollBar is displayed horizontally or vertically.

Syntax


public Orientation Orientation { get; set; }


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

Property value

Type: Orientation

An Orientation enumeration value that defines whether the ScrollBar is displayed horizontally or vertically. The default is Horizontal. Specific control templates might change this value, which would cause the templated value to be the apparent runtime default.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls.Primitives
Windows::UI::Xaml::Controls::Primitives [C++]

Metadata

Windows.winmd

See also

ScrollBar

 

 

Show:
© 2014 Microsoft