Slider.SelectionEnd Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the largest value of a specified selection for a Slider.

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

[<BindableAttribute(true)>]
member SelectionEnd : float with get, set

Property Value

Type: System.Double

The largest value of a selected range of values of a Slider. The default is zero (0.0).

The value of the SelectionEnd property cannot be greater than the value of the Maximum property and cannot be less than the value of the Minimum property. The value of the SelectionEnd property must also be greater than or equal to the value of the SelectionStart property. If the value of the SelectionEnd property is greater than the value of the Maximum property or less than the value of the Minimum property, the value is set to the value of the Maximum or Minimum property respectively.

The following example shows how to set the SelectionEnd property.

No code example is currently available or this language may not be supported.
<Slider Width="100" 
        Orientation="Horizontal"  
        Minimum="1" Maximum="10" 
        IsDirectionReversed="True"
        IsMoveToPointEnabled="True"
        AutoToolTipPrecision="2" AutoToolTipPlacement="BottomRight"
        TickPlacement="BottomRight"
        Ticks="0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5" 
        IsSelectionRangeEnabled="true"
        SelectionStart="2.5" SelectionEnd="7.5" Name="mySlider"/>

.NET Framework
Available since 3.0
Return to top
Show: