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

Gets or sets a value that indicates the direction of increasing value.

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

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

value = instance.IsDirectionReversed

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

Property Value

Type: System..::.Boolean

true if the direction of increasing value is to the left for a horizontal slider or down for a vertical slider; otherwise, false. The default is false.

The value of this property determines the direction of increasing value of a Slider. For example, when you move the Thumb control up on a vertical Slider when the IsDirectionReversed property is set to false, the Value of the Slider increases. If the value of the IsDirectionReversed property is changed to true, the Value of the Slider decreases as the Thumb moves up.

The following code example shows how to set the IsDirectionReversed property to specify the direction of increasing value.

XAML
<Slider Margin="0,5,0,20"
    x:Name="slider4"  
    Minimum="0" 
    Maximum="10"
    IsDirectionReversed="true"/>

XAML
<Slider Margin="0,5,0,20"
    x:Name="slider4"  
    Minimum="0" 
    Maximum="10"
    IsDirectionReversed="true"/>

Run this sample.

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