Orientation Property

Slider.Orientation Property


Gets or sets the orientation of a Slider.

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

public Orientation Orientation { get; set; }

Property Value

Type: System.Windows.Controls.Orientation

One of the Orientation values. The default is Orientation.Horizontal.

This property binds to the Orientation property for the Track control that the Slider implements.

Identifier field


Metadata properties set to true


The following example shows how to set the Orientation property.

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