RangeSlider Class

Summary

A slider control with the ability to select a range between two values.
Namespace
MahApps.Metro.Controls
Base Types
  • RangeBase
graph BT Type-->Base0["RangeBase"] Type["RangeSlider"] class Type type-node

Syntax

[DefaultEvent("RangeSelectionChanged")]
[TemplatePart(Name = "PART_Container", Type = typeof(FrameworkElement))]
[TemplatePart(Name = "PART_RangeSliderContainer", Type = typeof(StackPanel))]
[TemplatePart(Name = "PART_LeftEdge", Type = typeof(RepeatButton))]
[TemplatePart(Name = "PART_LeftThumb", Type = typeof(Thumb))]
[TemplatePart(Name = "PART_MiddleThumb", Type = typeof(Thumb))]
[TemplatePart(Name = "PART_RightThumb", Type = typeof(Thumb))]
[TemplatePart(Name = "PART_RightEdge", Type = typeof(RepeatButton))]
public class RangeSlider : RangeBase

Attributes

Type Description
DefaultEvent
TemplatePart
TemplatePart
TemplatePart
TemplatePart
TemplatePart
TemplatePart
TemplatePart

Constructors

Name Summary
RangeSlider()

Events

Name Type Summary
CentralThumbDragCompleted DragCompletedEventHandler
CentralThumbDragDelta DragDeltaEventHandler
CentralThumbDragStarted DragStartedEventHandler
LowerThumbDragCompleted DragCompletedEventHandler
LowerThumbDragDelta DragDeltaEventHandler
LowerThumbDragStarted DragStartedEventHandler
LowerValueChanged RoutedPropertyChangedEventHandler<double>
RangeSelectionChanged RangeSelectionChangedEventHandler<double>
UpperThumbDragCompleted DragCompletedEventHandler
UpperThumbDragDelta DragDeltaEventHandler
UpperThumbDragStarted DragStartedEventHandler
UpperValueChanged RoutedPropertyChangedEventHandler<double>

Fields

Name Constant Value Summary
AutoToolTipLowerValueTemplateProperty
Identifies the AutoToolTipLowerValueTemplate dependency property.
static
AutoToolTipPlacementProperty
Identifies the AutoToolTipPlacement dependency property.
static
AutoToolTipPrecisionProperty
Identifies the AutoToolTipPrecision dependency property.
static
AutoToolTipRangeValuesTemplateProperty
Identifies the AutoToolTipRangeValuesTemplate dependency property.
static
AutoToolTipUpperValueTemplateProperty
Identifies the AutoToolTipUpperValueTemplate dependency property.
static
CentralThumbDragCompletedEvent
Identifies the CentralThumbDragCompleted routed event.
static
CentralThumbDragDeltaEvent
Identifies the CentralThumbDragDelta routed event.
static
CentralThumbDragStartedEvent
Identifies the CentralThumbDragStarted routed event.
static
ExtendedModeProperty
Identifies the ExtendedMode dependency property.
static
IntervalProperty
Identifies the Interval dependency property.
static
IsMoveToPointEnabledProperty
Identifies the IsMoveToPointEnabled dependency property.
static
IsSelectionRangeEnabledProperty
Identifies the IsSelectionRangeEnabled dependency property.
static
IsSnapToTickEnabledProperty
Identifies the IsSnapToTickEnabled dependency property.
static
LowerThumbDragCompletedEvent
Identifies the LowerThumbDragCompleted routed event.
static
LowerThumbDragDeltaEvent
Identifies the LowerThumbDragDelta routed event.
static
LowerThumbDragStartedEvent
Identifies the LowerThumbDragStarted routed event.
static
LowerValueChangedEvent
Identifies the LowerValueChanged routed event.
static
LowerValueProperty
Identifies the LowerValue dependency property.
static
MinRangeProperty
Identifies the MinRange dependency property.
static
MinRangeWidthProperty
Identifies the MinRangeWidth dependency property.
static
MoveAllBack
static
MoveAllForward
static
MoveBack
static
MoveForward
static
MoveWholeRangeProperty
Identifies the MoveWholeRange dependency property.
static
OrientationProperty
Identifies the Orientation dependency property.
static
RangeSelectionChangedEvent
Identifies the RangeSelectionChanged routed event.
static
SelectionEndProperty
Identifies the SelectionEnd dependency property.
static
SelectionStartProperty
Identifies the SelectionStart dependency property.
static
TickFrequencyProperty
Identifies the TickFrequency dependency property.
static
TickPlacementProperty
Identifies the TickPlacement dependency property.
static
TicksProperty
Identifies the Ticks dependency property.
static
UpperThumbDragCompletedEvent
Identifies the UpperThumbDragCompleted routed event.
static
UpperThumbDragDeltaEvent
Identifies the UpperThumbDragDelta routed event.
static
UpperThumbDragStartedEvent
Identifies the UpperThumbDragStarted routed event.
static
UpperValueChangedEvent
Identifies the UpperValueChanged routed event.
static
UpperValueProperty
Identifies the UpperValue dependency property.
static

Properties

Name Value Summary
AutoToolTipLowerValueTemplate DataTemplate
Gets or sets a template for the auto tooltip to show the lower value.
AutoToolTipPlacement AutoToolTipPlacement
Gets or sets whether a tooltip that contains the current value of the RangeSlider displays when the System.Windows.Controls.Primitives.Track.Thumb is pressed. If a tooltip is displayed, this property also specifies the placement of the tooltip.
AutoToolTipPrecision int
Gets or sets the number of digits that are displayed to the right side of the decimal point for the System.Windows.Controls.Primitives.RangeBase.Value of the RangeSlider in a tooltip.
AutoToolTipRangeValuesTemplate DataTemplate
Gets or sets a template for the auto tooltip to show the center value.
AutoToolTipUpperValueTemplate DataTemplate
Gets or sets a template for the auto tooltip to show the upper value.
ExtendedMode bool
Get/sets whether possibility to make manipulations inside range with left/right mouse buttons + cotrol button
Interval int
Get/sets value how fast thumbs will move when user press on left/right/central with left mouse button (IsMoveToPoint must be set to FALSE)
IsMoveToPointEnabled bool
Get or sets IsMoveToPoint feature which will enable/disable moving to exact point inside control when user clicked on it Gets or sets a value that indicates whether the two System.Windows.Controls.Primitives.Track.Thumb of a RangeSlider moves immediately to the location of the mouse click that occurs while the mouse pointer pauses on the RangeSlider tracks.
IsSelectionRangeEnabled bool
Gets or sets a value that indicates whether the RangeSlider displays a selection range along the RangeSlider.
IsSnapToTickEnabled bool
Get/sets whether possibility to make manipulations inside range with left/right mouse buttons + cotrol button
LowerValue double
Get/sets the beginning of the range selection.
MinRange double
Get/sets the minimum range that can be selected.
MinRangeWidth double
Get/sets the minimal distance between two thumbs.
MovableRange double
MoveWholeRange bool
Get/sets whether whole range will be moved when press on right/left/central part of control
Orientation Orientation
Gets or sets the orientation of the RangeSlider.
SelectionEnd double
Gets or sets the largest value of a specified selection for a RangeSlider.
SelectionStart double
Gets or sets the smallest value of a specified selection for a RangeSlider.
TickFrequency double
Gets or sets the interval between tick marks.
TickPlacement TickPlacement
Gets or sets the position of tick marks with respect to the System.Windows.Controls.Primitives.Track of the RangeSlider.
Ticks DoubleCollection
Gets or sets the positions of the tick marks to display for a RangeSlider.
UpperValue double
Get/sets the end of the range selection.

Methods

Name Value Summary
MoveSelection(bool) void
OnApplyTemplate() void
OnMaximumChanged(double, double) void
Responds to a change in the value of the System.Windows.Controls.Primitives.RangeBase.Maximum property.
OnMinimumChanged(double, double) void
Responds to a change in the value of the System.Windows.Controls.Primitives.RangeBase.Minimum property.
ResetSelection(bool) void