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

ScrollBar.Orientation Property

 

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

Namespace:   System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

member Orientation : Orientation with get, set

Property Value

Type: System.Windows.Controls.Orientation

An Orientation enumeration value that defines whether the ScrollBar is displayed horizontally or vertically. The default is Vertical.

Identifier field

OrientationProperty

Metadata properties set to true

None

The following example shows how to set the Orientation property for a ScrollBar control.

No code example is currently available or this language may not be supported.
<ScrollBar Name="myScrollBar" Orientation="Horizontal"/>

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2016 Microsoft