Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight
Slider Class
Slider Properties
 Orientation Property
Other versions are also available for the following:
.NET Framework Class Library for Silverlight
Slider..::.Orientation Property
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Gets or sets the orientation of a Slider.

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

Visual Basic (Declaration)
Public Property Orientation As Orientation
Visual Basic (Usage)
Dim instance As Slider
Dim value As Orientation

value = instance.Orientation

instance.Orientation = value
C#
public Orientation Orientation { get; set; }
Visual C++
public:
property Orientation Orientation {
    Orientation get ();
    void set (Orientation value);
}
JScript
public function get Orientation () : Orientation
public function set Orientation (value : Orientation)
XAML Attribute Usage
                    <object Orientation="Orientation"/>
                

The following code example shows how to set the Orientation property for a vertical slider.

XAML
<Slider Margin="0,5,0,20"
    x:Name="slider3" 
    Minimum="0" 
    Maximum="10"
    Height="100"
    Orientation="Vertical"/>

XAML
<Slider Margin="0,5,0,20"
    x:Name="slider3" 
    Minimum="0" 
    Maximum="10"
    Height="100"
    Orientation="Vertical"/>

Run this sample.

© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker