IsSelectionRangeEnabled Property

Slider.IsSelectionRangeEnabled Property


Gets or sets a value that indicates whether the Slider displays a selection range along the Slider.

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

public bool IsSelectionRangeEnabled { get; set; }

Property Value

Type: System.Boolean

true 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

Slider selection range

This property is bound to the IsSelectionRangeEnabled property of the TickBar control that it implements.

Identifier field


Metadata properties set to true


Legacy Code Example

The following example shows how to set the IsSelectionRangeEnabled property.

Code snippet is not found. Confirm that the code snippet name 'Slider' is correct.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft