Slider::SelectionEnd Property
.NET Framework (current version)
Gets or sets the largest value of a specified selection for a Slider.
Assembly: PresentationFramework (in PresentationFramework.dll)
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.
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: