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 RangeParameterChangedEventHandler
RangeSelectionChanged RangeSelectionChangedEventHandler
UpperThumbDragCompleted DragCompletedEventHandler
UpperThumbDragDelta DragDeltaEventHandler
UpperThumbDragStarted DragStartedEventHandler
UpperValueChanged RangeParameterChangedEventHandler

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
static
CentralThumbDragDeltaEvent
static
CentralThumbDragStartedEvent
static
ExtendedModeProperty
static
IntervalProperty
static
IsMoveToPointEnabledProperty
static
IsSelectionRangeEnabledProperty
Identifies the IsSelectionRangeEnabled dependency property.
static
IsSnapToTickEnabledProperty
static
LowerThumbDragCompletedEvent
static
LowerThumbDragDeltaEvent
static
LowerThumbDragStartedEvent
static
LowerValueChangedEvent
static
LowerValueProperty
static
MinRangeProperty
static
MinRangeWidthProperty
static
MoveAllBack
static
MoveAllForward
static
MoveBack
static
MoveForward
static
MoveWholeRangeProperty
static
OrientationProperty
static
RangeSelectionChangedEvent
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
static
UpperThumbDragDeltaEvent
static
UpperThumbDragStartedEvent
static
UpperValueChangedEvent
static
UpperValueProperty
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