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 |
|---|---|---|
| Central |
Drag |
|
| Central |
Drag |
|
| Central |
Drag |
|
| Lower |
Drag |
|
| LowerThumbDragDelta | Drag |
|
| Lower |
Drag |
|
| LowerValueChanged | Routed |
|
| Range |
Range |
|
| Upper |
Drag |
|
| UpperThumbDragDelta | Drag |
|
| Upper |
Drag |
|
| UpperValueChanged | Routed |
Fields
| Name | Constant Value | Summary |
|---|---|---|
| Auto |
Identifies the
AutoToolTipLowerValueTemplate dependency property.static
|
|
| Auto |
Identifies the
AutoToolTipPlacement dependency property.static
|
|
| Auto |
Identifies the
AutoToolTipPrecision dependency property.static
|
|
| Auto |
Identifies the
AutoToolTipRangeValuesTemplate dependency property.static
|
|
| Auto |
Identifies the
AutoToolTipUpperValueTemplate dependency property.static
|
|
| Central |
Identifies the
CentralThumbDragCompleted routed event.static
|
|
| Central |
Identifies the
CentralThumbDragDelta routed event.static
|
|
| Central |
Identifies the
CentralThumbDragStarted routed event.static
|
|
| ExtendedModeProperty |
Identifies the
ExtendedMode dependency property.static
|
|
| IntervalProperty |
Identifies the
Interval dependency property.static
|
|
| Is |
Identifies the
IsMoveToPointEnabled dependency property.static
|
|
| Is |
Identifies the
IsSelectionRangeEnabled dependency property.static
|
|
| Is |
Identifies the
IsSnapToTickEnabled dependency property.static
|
|
| Lower |
Identifies the
LowerThumbDragCompleted routed event.static
|
|
| Lower |
Identifies the
LowerThumbDragDelta routed event.static
|
|
| Lower |
Identifies the
LowerThumbDragStarted routed event.static
|
|
| Lower |
Identifies the
LowerValueChanged routed event.static
|
|
| LowerValueProperty |
Identifies the
LowerValue dependency property.static
|
|
| MinRangeProperty |
Identifies the
MinRange dependency property.static
|
|
| Min |
Identifies the
MinRangeWidth dependency property.static
|
|
| MoveAllBack |
static
|
|
| MoveAllForward |
static
|
|
| MoveBack |
static
|
|
| MoveForward |
static
|
|
| Move |
Identifies the
MoveWholeRange dependency property.static
|
|
| OrientationProperty |
Identifies the
Orientation dependency property.static
|
|
| Range |
Identifies the
RangeSelectionChanged routed event.static
|
|
| SelectionEndProperty |
Identifies the
SelectionEnd dependency property.static
|
|
| Selection |
Identifies the
SelectionStart dependency property.static
|
|
| Tick |
Identifies the
TickFrequency dependency property.static
|
|
| Tick |
Identifies the
TickPlacement dependency property.static
|
|
| TicksProperty |
Identifies the
Ticks dependency property.static
|
|
| Upper |
Identifies the
UpperThumbDragCompleted routed event.static
|
|
| Upper |
Identifies the
UpperThumbDragDelta routed event.static
|
|
| Upper |
Identifies the
UpperThumbDragStarted routed event.static
|
|
| Upper |
Identifies the
UpperValueChanged routed event.static
|
|
| UpperValueProperty |
Identifies the
UpperValue dependency property.static
|
Properties
| Name | Value | Summary |
|---|---|---|
| Auto |
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.
|
| Auto |
DataTemplate |
Gets or sets a template for the auto tooltip to show the center value.
|
| Auto |
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.
|
| Is |
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 |
void | |
| OnApplyTemplate |
void | |
| OnMaximumChanged |
void |
Responds to a change in the value of the
System.Windows.Controls.Primitives.RangeBase.Maximum property.
|
| OnMinimumChanged |
void |
Responds to a change in the value of the
System.Windows.Controls.Primitives.RangeBase.Minimum property.
|
| ResetSelection |
void |
