.NET Framework Class Library for Silverlight
Slider..::.Orientation Property

Gets or sets the orientation of a Slider.

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

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

value = instance.Orientation

instance.Orientation = value
C#
public Orientation Orientation { get; set; }
XAML Attribute Usage
<object Orientation="Orientation"/>
Remarks

Dependency property identifier field: OrientationProperty

Examples

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

Run this sample

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

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

Tags :


Page view tracker