Slider::SelectionStart Property
.NET Framework (current version)
Gets or sets the smallest value of a specified selection for a Slider.
Assembly: PresentationFramework (in PresentationFramework.dll)
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.
Identifier Field | |
Metadata properties set to true |
The following example shows how to set the SelectionEnd property.
<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
Available since 3.0
Show: