Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight 3
Slider Class
Slider Properties
 IsDirectionReversed Property

  Switch on low bandwidth view
This page is specific to
Microsoft Silverlight 3

Other versions are also available for the following:
.NET Framework Class Library for Silverlight
Slider..::.IsDirectionReversed Property

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

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
Visual Basic (Declaration)
Public Property IsDirectionReversed As Boolean
    Get
    Set
Visual Basic (Usage)
Dim instance As Slider
Dim value As Boolean

value = instance.IsDirectionReversed

instance.IsDirectionReversed = value
C#
public bool IsDirectionReversed { get; set; }
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.

Dependency property identifier field: IsDirectionReversedProperty

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.

Run this sample

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

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

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker