Slider.SelectionStart Property

 

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

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

[<BindableAttribute(true)>]
member SelectionStart : 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 SelectionStart property cannot be less than the value of the Minimum property and cannot be greater than the value of the Maximum property. The value of the SelectionEnd property must also be greater than or equal to the value of the SelectionStart property. If SelectionStart is less than Minimum or greater than Maximum, SelectionStart is set to the value of Minimum or Maximum 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: