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 | Range |
|
| Range |
Range |
|
| Upper |
Drag |
|
| UpperThumbDragDelta | Drag |
|
| Upper |
Drag |
|
| UpperValueChanged | Range |
Fields
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 |
