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

Properties

Name Property Type 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 Return 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