Class SfRangeSlider
RangeSlider is a Windows.UI.Xaml.Controls.Primitives.RangeBase that lets the user select from a range of values by moving a Windows.UI.Xaml.Controls.Primitives.Thumb control along a track.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Controls.Input
Assembly: Syncfusion.SfInput.UWP.dll
Syntax
public class SfRangeSlider : RangeBase, IDisposable
Remarks
Range Slider control allows the user to select the range of value within the specified minimum and maximum limit. The range can be selected by moving the Thumb control along a track.
Constructors
SfRangeSlider()
Initializes a new instance of the SfRangeSlider class.
Declaration
public SfRangeSlider()
Fields
CultureProperty
Using a DependencyProperty as the backing store for Culture. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty CultureProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
CustomLabelsProperty
Using a DependencyProperty as the backing store for CustomLabels. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty CustomLabelsProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
IntermediateRangeEndProperty
Using a DependencyProperty as the backing store for RangeEnd. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty IntermediateRangeEndProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
IntermediateRangeStartProperty
Using a DependencyProperty as the backing store for RangeStart. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty IntermediateRangeStartProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
IntermediateValueProperty
Using a DependencyProperty as the backing store for IntermediateValue. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty IntermediateValueProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
IsDirectionReversedProperty
Using a DependencyProperty as the backing store for IsDirectionReversed. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty IsDirectionReversedProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
LabelColorProperty
Using a DependencyProperty as the backing store for LabelColor. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty LabelColorProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
LabelFormatProperty
Using a DependencyProperty as the backing store for FormatString. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty LabelFormatProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
LabelOrientationProperty
Using a DependencyProperty as the backing store for LabelOrientation. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty LabelOrientationProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
LabelPlacementProperty
Using a DependencyProperty as the backing store for LabelPlacement. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty LabelPlacementProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
MoveToPointProperty
Using a DependencyProperty as the backing store for ShowRange. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty MoveToPointProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
OrientationProperty
Using a DependencyProperty as the backing store for MyProperty. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
RangeEndProperty
Using a DependencyProperty as the backing store for RangeEnd. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty RangeEndProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
RangeStartProperty
Using a DependencyProperty as the backing store for RangeStart. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty RangeStartProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ShowCustomLabelsProperty
Using a DependencyProperty as the backing store for ShowCustomLabels. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ShowCustomLabelsProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ShowRangeProperty
Using a DependencyProperty as the backing store for ShowRange. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ShowRangeProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ShowValueLabelsProperty
Using a DependencyProperty as the backing store for ShowValueLabels. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ShowValueLabelsProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
SnapsToProperty
Using a DependencyProperty as the backing store for SnapsTo. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty SnapsToProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
StepFrequencyProperty
Using a DependencyProperty as the backing store for StepFrequency. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty StepFrequencyProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ThumbColorProperty
Using a DependencyProperty as the backing store for Thumb color. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ThumbColorProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ThumbIntervalProperty
Using a DependencyProperty as the backing store for ThumbInterval. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ThumbIntervalProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ThumbToolTipPlacementProperty
Using a DependencyProperty as the backing store for ThumbTooltipPlacement. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ThumbToolTipPlacementProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ThumbToolTipPrecisionProperty
Using a DependencyProperty as the backing store for ThumbToolTipPrecision. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ThumbToolTipPrecisionProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
TickBarFillProperty
Using a DependencyProperty as the backing store for TickBarFill. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty TickBarFillProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
TickFrequencyProperty
Using a DependencyProperty as the backing store for TickFrequency. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty TickFrequencyProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
TickPlacementProperty
Using a DependencyProperty as the backing store for TickPlacement. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty TickPlacementProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ToolTipBackgroundProperty
Using a DependencyProperty as the backing store for ToolTipBackground. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ToolTipBackgroundProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ToolTipForegroundProperty
Using a DependencyProperty as the backing store for ToolTipForeground. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ToolTipForegroundProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
TrackSelectionThicknessProperty
Using a DependencyProperty as the backing store for TrackSelectionThickness. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty TrackSelectionThicknessProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
TrackThicknessProperty
Using a DependencyProperty as the backing store for TrackThickness. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty TrackThicknessProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
ValuePlacementProperty
Using a DependencyProperty as the backing store for ValuePlacement. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ValuePlacementProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
Properties
Culture
Gets or sets the Culture of the value label
Declaration
public CultureInfo Culture { get; set; }
Property Value
Type |
---|
System.Globalization.CultureInfo |
CustomLabels
Gets or sets the value for custom labels.
Declaration
public ObservableCollection<Items> CustomLabels { get; set; }
Property Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<Items> |
IntermediateRangeEnd
Gets the intermediate Syncfusion.UI.Xaml.Controls.Input.RangeSlider.RangeEnd value.
Declaration
public double IntermediateRangeEnd { get; }
Property Value
Type | Description |
---|---|
System.Double | The default value is zero. |
See Also
IntermediateRangeStart
Gets the intermediate Syncfusion.UI.Xaml.Controls.Input.RangeSlider.RangeStart value.
Declaration
public double IntermediateRangeStart { get; }
Property Value
Type | Description |
---|---|
System.Double | The default value is zero. |
See Also
IntermediateValue
Gets the intermediate value. This works when Syncfusion.UI.Xaml.Controls.Input.RangeSlider.ShowRange is false.
Declaration
public double IntermediateValue { get; }
Property Value
Type | Description |
---|---|
System.Double | The default value is zero. |
See Also
IsDirectionReversed
Gets or sets a value indicating whether true or false. Syncfusion.UI.Xaml.Controls.Input.RangeSlider.
Declaration
public bool IsDirectionReversed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
The default is false.
LabelColor
Gets or sets the text color of the label
Declaration
public Brush LabelColor { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.Media.Brush |
LabelFormat
Gets or sets the formatstring of the value label
Declaration
public string LabelFormat { get; set; }
Property Value
Type |
---|
System.String |
LabelOrientation
Gets or sets the orientation of the label
Declaration
public Orientation LabelOrientation { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.Controls.Orientation |
LabelPlacement
Gets or sets the value that determines the placement of label.
Declaration
public LabelPlacement LabelPlacement { get; set; }
Property Value
Type |
---|
LabelPlacement |
Remarks
The default value is TopLeft
MoveToPoint
Gets or sets a value indicating whether to change thumb position Syncfusion.UI.Xaml.Controls.Input.RangeSlider.
Declaration
public MovePoint MoveToPoint { get; set; }
Property Value
Type | Description |
---|---|
MovePoint |
|
Remarks
The default value is None.
Orientation
Gets or sets the value that determines orientation of the control either vertical or horizontal.
Declaration
public Orientation Orientation { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Controls.Orientation | It will accepts the type is Windows.UI.Xaml.Controls.Orientation. The default value is Windows.UI.Xaml.Controls.Orientation.Horizontal. |
RangeEnd
Gets or sets the value indicating position of the right / bottom thumb.
Declaration
public double RangeEnd { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is zero. |
See Also
RangeStart
Gets or sets the value indicating position of the left / top thumb.
Declaration
public double RangeStart { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is zero. |
See Also
ShowCustomLabels
Gets or sets a value indicating whether true or false.
Declaration
public bool ShowCustomLabels { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
The default value is false
ShowRange
Gets or sets a value indicating whether true or false.
Declaration
public bool ShowRange { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
The default value is false.
ShowValueLabels
Gets or sets a value indicating whether true or false.
Declaration
public bool ShowValueLabels { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
The default value is false
SnapsTo
Gets or sets the value that restricts range snaps movement.
Declaration
public SliderSnapsTo SnapsTo { get; set; }
Property Value
Type | Description |
---|---|
SliderSnapsTo | The default value is StepValues. |
StepFrequency
Gets or sets the value that determines intervals of the thumb step movement .
Declaration
public double StepFrequency { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1. |
See Also
ThumbColor
Gets or sets the fill color of the knob.
Declaration
public Brush ThumbColor { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.Media.Brush |
ThumbInterval
Gets or sets the interval between thumbs
Declaration
public int ThumbInterval { get; set; }
Property Value
Type |
---|
System.Int32 |
ThumbToolTipPlacement
Gets or sets the value that determines the placement of tool tip.
Declaration
public ThumbToolTipPlacement ThumbToolTipPlacement { get; set; }
Property Value
Type | Description |
---|---|
ThumbToolTipPlacement | The default value is TopLeft. |
See Also
ThumbToolTipPrecision
Gets or sets the value that determines the number of digits to be displayed in tool tip.
Declaration
public int ThumbToolTipPrecision { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The default value is zero. |
See Also
TickBarFill
Gets or Sets the tick color of the RangeSlider
Declaration
public Brush TickBarFill { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.Media.Brush |
TickFrequency
Gets or sets the value that determines intervals of the thumb step movement.
Declaration
public double TickFrequency { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1. |
See Also
TickPlacement
Gets or sets the value that determines intervals of the tick representation.
Declaration
public TickPlacement TickPlacement { get; set; }
Property Value
Type | Description |
---|---|
TickPlacement | The default value is Inline. |
ToolTipBackground
Gets or sets the background color of the tool tip.
Declaration
public Brush ToolTipBackground { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.Media.Brush |
ToolTipForeground
Gets or sets the text color of the tool tip.
Declaration
public Brush ToolTipForeground { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.Media.Brush |
TrackSelectionThickness
Gets or sets the orientation of the TrackSelectionThickness
Declaration
public double TrackSelectionThickness { get; set; }
Property Value
Type |
---|
System.Double |
TrackThickness
Gets or sets the orientation of the TrackThickness
Declaration
public double TrackThickness { get; set; }
Property Value
Type |
---|
System.Double |
ValuePlacement
Gets or sets the value that determines the placement of value representation.
Declaration
public ValuePlacement ValuePlacement { get; set; }
Property Value
Type |
---|
ValuePlacement |
Remarks
The default value is BottomRight
Methods
add_LabelLoaded(LabelLoadedEventHandler)
Declaration
public void add_LabelLoaded(LabelLoadedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
LabelLoadedEventHandler | value |
add_RangeChanged(RangeChangedEventHandler)
Declaration
public void add_RangeChanged(RangeChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
RangeChangedEventHandler | value |
add_RangeEndChanged(RangeEndChangedEventHandler)
Declaration
public void add_RangeEndChanged(RangeEndChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
RangeEndChangedEventHandler | value |
add_RangeStartChanged(RangeStartChangedEventHandler)
Declaration
public void add_RangeStartChanged(RangeStartChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
RangeStartChangedEventHandler | value |
Dispose()
To clear unused objects
Declaration
public void Dispose()
Dispose(Boolean)
Dispose method
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | boolean value |
OnApplyTemplate()
Initializes all the child elements of Syncfusion.UI.Xaml.Controls.Input.RangeSlider control.
Declaration
protected override void OnApplyTemplate()
OnGotFocus(RoutedEventArgs)
Occurs when the focus is obtained
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.RoutedEventArgs | e | Routed event args |
OnHorizontalRangeEndThumbDragDelta(Object, DragDeltaEventArgs)
Occurs when the HorizontalRangeEndThumb is dragged.
Declaration
protected virtual void OnHorizontalRangeEndThumbDragDelta(object sender, DragDeltaEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | object type |
Windows.UI.Xaml.Controls.Primitives.DragDeltaEventArgs | e | Drag delta event args type |
OnKeyDown(KeyRoutedEventArgs)
Occurs when the key is pressed
Declaration
protected override void OnKeyDown(KeyRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.KeyRoutedEventArgs | e | Routed event args |
OnLostFocus(RoutedEventArgs)
Occurs when the focus is lost
Declaration
protected override void OnLostFocus(RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.RoutedEventArgs | e | Routed event args |
OnMaximumChanged(Double, Double)
Occurs when the Maximum value has changed.
Declaration
protected override void OnMaximumChanged(double oldMaximum, double newMaximum)
Parameters
Type | Name | Description |
---|---|---|
System.Double | oldMaximum | old Maximum value |
System.Double | newMaximum | new Maximum value |
OnMinimumChanged(Double, Double)
Occurs when the Minimum value has changed.
Declaration
protected override void OnMinimumChanged(double oldMinimum, double newMinimum)
Parameters
Type | Name | Description |
---|---|---|
System.Double | oldMinimum | Double type |
System.Double | newMinimum | new minimum value |
OnPointerEntered(PointerRoutedEventArgs)
Occurs when the pointer entered
Declaration
protected override void OnPointerEntered(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e | Routed event args |
OnPointerExited(PointerRoutedEventArgs)
Occurs when the pointer exited
Declaration
protected override void OnPointerExited(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e | Routed event args |
OnPointerMoved(PointerRoutedEventArgs)
Occurs when the pointer is moved
Declaration
protected override void OnPointerMoved(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e | Routed event args |
OnPointerPressed(PointerRoutedEventArgs)
Occurs when the pointer is pressed
Declaration
protected override void OnPointerPressed(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e | Routed event args |
OnPointerReleased(PointerRoutedEventArgs)
Occurs when the focus is obtained
Declaration
protected override void OnPointerReleased(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e | Routed event args |
remove_LabelLoaded(LabelLoadedEventHandler)
Declaration
public void remove_LabelLoaded(LabelLoadedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
LabelLoadedEventHandler | value |
remove_RangeChanged(RangeChangedEventHandler)
Declaration
public void remove_RangeChanged(RangeChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
RangeChangedEventHandler | value |
remove_RangeEndChanged(RangeEndChangedEventHandler)
Declaration
public void remove_RangeEndChanged(RangeEndChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
RangeEndChangedEventHandler | value |
remove_RangeStartChanged(RangeStartChangedEventHandler)
Declaration
public void remove_RangeStartChanged(RangeStartChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
RangeStartChangedEventHandler | value |
Events
DragCompleted
Occurs when thumb dragging completed.
Declaration
public event EventHandler<DragThumbEventArgs> DragCompleted
Event Type
Type |
---|
System.EventHandler<DragThumbEventArgs> |
DragStarted
Occurs when thumb dragging started.
Declaration
public event EventHandler<DragThumbEventArgs> DragStarted
Event Type
Type |
---|
System.EventHandler<DragThumbEventArgs> |
LabelLoaded
Occurs when label values are loadedSyncfusion.UI.Xaml.Controls.Layout.Input is changed.
Declaration
public event LabelLoadedEventHandler LabelLoaded
Event Type
Type |
---|
LabelLoadedEventHandler |
RangeChanged
Occurs when RangeStart or RangeEnd gets changedSyncfusion.UI.Xaml.Controls.Layout.Input is changed.
Declaration
public event RangeChangedEventHandler RangeChanged
Event Type
Type |
---|
RangeChangedEventHandler |
RangeEndChanged
Occurs when RangeEnd gets changedSyncfusion.UI.Xaml.Controls.Layout.Input is changed.
Declaration
public event RangeEndChangedEventHandler RangeEndChanged
Event Type
Type |
---|
RangeEndChangedEventHandler |
RangeStartChanged
Occurs when RangeStart gets changedSyncfusion.UI.Xaml.Controls.Layout.Input is changed.
Declaration
public event RangeStartChangedEventHandler RangeStartChanged
Event Type
Type |
---|
RangeStartChangedEventHandler |