Slider::IsSelectionRangeEnabled Property
.NET Framework (current version)
Namespace:
System.Windows.Controls
Assembly: PresentationFramework (in PresentationFramework.dll)
Return to top
Assembly: PresentationFramework (in PresentationFramework.dll)
public: [BindableAttribute(true)] property bool IsSelectionRangeEnabled { bool get(); void set(bool value); }
Property Value
Type: System::Booleantrue if a selection range is displayed; otherwise, false. The default is false.
The SelectionStart and SelectionEnd properties define a selection range and must be set for the selection range to appear when IsSelectionRangeEnabled is set to true.
The following illustration shows a Slider with a selection range defined.
A selection range defined for a Slider control

This property is bound to the IsSelectionRangeEnabled property of the TickBar control that it implements.
Identifier field | |
Metadata properties set to true | None |
The following example shows how to set the IsSelectionRangeEnabled 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: