Slider::Orientation Property
.NET Framework (current version)
Gets or sets the orientation of a Slider.
Assembly: PresentationFramework (in PresentationFramework.dll)
public: property Orientation Orientation { Orientation get(); void set(Orientation value); }
Property Value
Type: System.Windows.Controls::OrientationOne 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 | None |
The following example shows how to set the Orientation property.
<Slider Name="slider1" Width="100" Orientation="Horizontal" HorizontalAlignment="Left" IsSnapToTickEnabled="True" Minimum="1" Maximum="20" TickPlacement="Both" TickFrequency="2" AutoToolTipPlacement="BottomRight"/>
.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: