Class SfRangeSlider
A material design for SfRangeSlider.
Implements
Inherited Members
Namespace: Syncfusion.Maui.Sliders
Assembly: Syncfusion.Maui.Sliders.dll
Syntax
public class SfRangeSlider : RangeSliderBase<double>, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IVisualTreeElement, ISemanticsProvider, ITouchListener, ITapGestureListener, IPanGestureListener, IGestureListener, IInteractionState, IRangeView<double>, INumericElement, IOrientationElement, IParentThemeElement, IThemeElement
Constructors
SfRangeSlider()
Initializes a new instance of the SfRangeSlider class.
Declaration
public SfRangeSlider()
Fields
NumberFormatProperty
The backing store for the NumberFormat field.
Declaration
public static readonly BindableProperty NumberFormatProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
OrientationProperty
The backing store for the Orientation field.
Declaration
public static readonly BindableProperty OrientationProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
StepSizeProperty
The backing store for the StepSize field.
Declaration
public static readonly BindableProperty StepSizeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
Properties
NumberFormat
Gets or sets the value to format the label text.
Declaration
public string NumberFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String | Defaults to |
Examples
Snippet for SfRangeSlider
Orientation
Gets or sets the orientation of the RangeSlider.
If you set this property to Horizontal, the slider will be render from left to right. If you set this property to Vertical, the slider will be render from bottom to top.
Declaration
public SliderOrientation Orientation { get; set; }
Property Value
Type | Description |
---|---|
SliderOrientation | Defaults to |
Examples
Snippet for SfRangeSlider
StepSize
Gets or sets the value indicating whether to select the discrete value.
For example, if Minimum is 0.0 and Maximum is 10.0 and StepSize is 2.0, then the slider will move the thumb positions to 0.0, 2.0, 4.0, 6.0, 8.0 and 10.0 only.
Declaration
public double StepSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Defaults to |
Remarks
StepSize does not work with BetweenThumbs.
Examples
Snippet for SfRangeSlider
Events
ValueChanged
Represents the ValueChanged event, which occurs when the user is done selecting a new value for the Range Slider.
Declaration
public event EventHandler<RangeSliderValueChangedEventArgs> ValueChanged
Event Type
Type |
---|
System.EventHandler<RangeSliderValueChangedEventArgs> |
Examples
ValueChanging
Represents the ValueChanging event, which occurs when the user is selecting a new value for the Range Slider by dragging any one of the thumb.
Declaration
public event EventHandler<RangeSliderValueChangingEventArgs> ValueChanging
Event Type
Type |
---|
System.EventHandler<RangeSliderValueChangingEventArgs> |
Examples
Explicit Interface Implementations
INumericElement.OnNumberFormatChanged(String, String)
Declaration
void INumericElement.OnNumberFormatChanged(string oldValue, string newValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | oldValue | |
System.String | newValue |
INumericElement.OnStepChanged()
Declaration
void INumericElement.OnStepChanged()
IOrientationElement.OnOrientationChanged(SliderOrientation)
Declaration
void IOrientationElement.OnOrientationChanged(SliderOrientation newValue)
Parameters
Type | Name | Description |
---|---|---|
SliderOrientation | newValue |