Class SfRangeSlider
SfRangeSlider represents a control that allows users select a range of values within the specified limits.
Inheritance
Namespace: Syncfusion.SfRangeSlider.XForms
Assembly: Syncfusion.SfRangeSlider.XForms.dll
Syntax
public class SfRangeSlider : View, IParentThemeElement, IThemeElement
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 along a track.
Constructors
SfRangeSlider()
Initializes a new instance of the SfRangeSlider class.
Declaration
public SfRangeSlider()
Fields
AllowDragRangeProperty
Identifies the ShowRange bindable property. It indicates whether the range is shown or not in SfRangeSlider.
Declaration
public static readonly BindableProperty AllowDragRangeProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
CultureProperty
Identifies the Culture bindable property. This property can be used to change the culture of value in SfRangeSlider.
Declaration
public static readonly BindableProperty CultureProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
CustomLabelsProperty
Identifies the CustomLabels bindable property. This property can be used to give custom label in SfRangeSlider.
Declaration
public static readonly BindableProperty CustomLabelsProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
FontAttributeProperty
Identifies the FontAttribute bindable property. This property can be used to change the font attributes of an item in SfRangeSlider.
Declaration
public static readonly BindableProperty FontAttributeProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
FontFamilyProperty
Identifies the FontFamily bindable property. This property can be used to change the font family of an item in SfRangeSlider.
Declaration
public static readonly BindableProperty FontFamilyProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
FontSizeProperty
Identifies the FontSize bindable property. This property can be used to change the font size of an item in SfRangeSlider.
Declaration
public static readonly BindableProperty FontSizeProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
KnobColorProperty
Identifies the KnobColor bindable property. This property can be used to change the knob color in SfRangeSlider.
Declaration
public static readonly BindableProperty KnobColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
LabelColorProperty
Identifies the LabelColor bindable property. This property can be used to change the label color in SfRangeSlider.
Declaration
public static readonly BindableProperty LabelColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
LabelFormatProperty
Using a DependencyProperty as the backing store for FormatString property.
Declaration
public static readonly BindableProperty LabelFormatProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
LabelPlacementProperty
Identifies the LabelPlacement bindable property. This property can be used to change the position of label in SfRangeSlider.
Declaration
public static readonly BindableProperty LabelPlacementProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
MaximumProperty
Identifies the Maximum bindable property. The thumb cannot be moved after that value in SfRangeSlider.
Declaration
public static readonly BindableProperty MaximumProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
MinimumProperty
Identifies the Minimum bindable property. The thumb cannot be moved beyond that value in SfRangeSlider.
Declaration
public static readonly BindableProperty MinimumProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
MinimumRangeProperty
Identifies the Syncfusion.SfRangeSlider.XForms.SfRangeSlider.ShowBalloon bindable property. It indicates whether the SfRangeSlider shows balloon.
Declaration
public static readonly BindableProperty MinimumRangeProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
OrientationProperty
Identifies the Orientation bindable property. This property can be used to change the orientation in SfRangeSlider.
Declaration
public static readonly BindableProperty OrientationProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
RangeEndProperty
Identifies the RangeEnd bindable property. This property can be used to change the end range of value in SfRangeSlider.
Declaration
public static readonly BindableProperty RangeEndProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
RangeStartProperty
Identifies the RangeStart bindable property. This property can be used to change the start range of value in SfRangeSlider.
Declaration
public static readonly BindableProperty RangeStartProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ShowCustomLabelProperty
Identifies the ShowCustomLabel bindable property. It indicates whether the custom label is shown or not in SfRangeSlider.
Declaration
public static readonly BindableProperty ShowCustomLabelProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ShowRangeProperty
Identifies the ShowRange bindable property. It indicates whether the range is shown or not in SfRangeSlider.
Declaration
public static readonly BindableProperty ShowRangeProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ShowValueLabelProperty
Identifies the ShowValueLabel bindable property. It indicates whether the value label is enabled or not in SfRangeSlider.
Declaration
public static readonly BindableProperty ShowValueLabelProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
SnapsToProperty
Identifies the SnapsTo bindable property. This property determines whether the RangeSlider snaps to steps or ticks.
Declaration
public static readonly BindableProperty SnapsToProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
StepFrequencyProperty
Identifies the StepFrequency bindable property. This property can be used to change the step frequency in SfRangeSlider.
Declaration
public static readonly BindableProperty StepFrequencyProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ThumbBorderColorProperty
Identifies the ThumbBorderColor bindable property. This property can be used to change the thumb border color in SfRangeSlider.
Declaration
public static readonly BindableProperty ThumbBorderColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ThumbBorderThicknessProperty
Identifies the ThumbBorderThickness bindable property. This property can be used to change the thickness of the thumb border in SfRangeSlider.
Declaration
public static readonly BindableProperty ThumbBorderThicknessProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ThumbSizeProperty
Using a DependencyProperty as the backing store for ThumbSize property.
Declaration
public static readonly BindableProperty ThumbSizeProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
TickColorProperty
Identifies the TickColor bindable property. This property can be used to change the color of ticks in SfRangeSlider.
Declaration
public static readonly BindableProperty TickColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
TickFrequencyProperty
Identifies the TickFrequency bindable property. This property can be used to change the tick frequency in SfRangeSlider.
Declaration
public static readonly BindableProperty TickFrequencyProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
TickPlacementProperty
Identifies the TickPlacement bindable property. This property can be used to change position of ticks in SfRangeSlider.
Declaration
public static readonly BindableProperty TickPlacementProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ToolTipBackgroundColorProperty
Identifies the ToolTipBackgroundColor bindable property. This property can be used to change the background color of tooltip in SfRangeSlider.
Declaration
public static readonly BindableProperty ToolTipBackgroundColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ToolTipPlacementProperty
Identifies the ToolTipPlacement bindable property. This property can be used to change the position of tooltip in SfRangeSlider.
Declaration
public static readonly BindableProperty ToolTipPlacementProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ToolTipPrecisionProperty
Identifies the ToolTipPrecision bindable property. This property can be used to change the tooltip precision in SfRangeSlider.
Declaration
public static readonly BindableProperty ToolTipPrecisionProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ToolTipTextColorProperty
Identifies the ToolTipTextColor bindable property. This property can be used to change the text color of tooltip in SfRangeSlider.
Declaration
public static readonly BindableProperty ToolTipTextColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
TrackColorProperty
Identifies the TrackColor bindable property. This property can be used to change the track color in SfRangeSlider.
Declaration
public static readonly BindableProperty TrackColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
TrackCornerRadiusProperty
Identifies the TrackCornerRadius bindable property. This property can be used to change the track corner radius in SfRangeSlider.
Declaration
public static readonly BindableProperty TrackCornerRadiusProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
TrackSelectionColorProperty
Identifies the TrackSelectionColor bindable property. This property can be used to change the track selection color in SfRangeSlider.
Declaration
public static readonly BindableProperty TrackSelectionColorProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
TrackSelectionThicknessProperty
Identifies the TrackSelectionThickness bindable property. This property can be used to change the thickness of the track selection in SfRangeSlider.
Declaration
public static readonly BindableProperty TrackSelectionThicknessProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
TrackThicknessProperty
Identifies the TrackThickness bindable property. This property can be used to change the trck thickness in SfRangeSlider.
Declaration
public static readonly BindableProperty TrackThicknessProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ValueChangeModeProperty
Identifies the ValueChangeMode bindable property. This property can be used to change the Value Changing Mode in SfRangeSlider.
Declaration
public static readonly BindableProperty ValueChangeModeProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ValuePlacementProperty
Identifies the Value bindable property. This property can be used to change the position of value in SfRangeSlider.
Declaration
public static readonly BindableProperty ValuePlacementProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
ValueProperty
Identifies the Value bindable property. This property can be used to change the position of value in SfRangeSlider.
Declaration
public static readonly BindableProperty ValueProperty
Field Value
Type |
---|
Xamarin.Forms.BindableProperty |
Properties
AllowDragRange
Gets or sets a value indicating whether gets or sets a value that indicates whether to enable the label or not in SfRangeSlider.
Declaration
public bool AllowDragRange { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is |
Culture
Gets or sets the value culture. This property can be used to change the culture of value in SfRangeSlider.
Declaration
public CultureInfo Culture { get; set; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo | The default value is CultureInfo.CurrentCulture. |
CustomLabels
Gets or sets the value of CustomLabels. This property can be used to give custom label in SfRangeSlider.
Declaration
public ObservableCollection<Items> CustomLabels { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<Items> | The default value is null. |
FontAttribute
Gets or sets the value of FontAttribute. This property can be used to change the font attribute of an item in SfRangeSlider.
Declaration
public FontAttributes FontAttribute { get; set; }
Property Value
Type | Description |
---|---|
Xamarin.Forms.FontAttributes | The font family. |
FontFamily
Gets or sets the value of FontFamily. This property can be used to change the font family of an item in SfRangeSlider.
Declaration
public string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.String | The font family. |
FontSize
Gets or sets the value of FontSize. This property can be used to change the font size of an item in SfRangeSlider.
Declaration
public double FontSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The size of the font. |
KnobColor
Gets or sets the value of the KnobColor. This property can be used to change the knob color in SfRangeSlider.
Declaration
public Color KnobColor { get; set; }
Property Value
Type |
---|
Xamarin.Forms.Color |
LabelColor
Gets or sets the value of LabelColor. This property can be used to change the label color in SfRangeSlider.
Declaration
public Color LabelColor { get; set; }
Property Value
Type |
---|
Xamarin.Forms.Color |
LabelFormat
Gets or sets the value of LabelFormat. This property can be used to change the formatstring of value in SfRangeSlider.
Declaration
public string LabelFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null. |
LabelPlacement
Gets or sets the value of LabelPlacement. This property can be used to change the position of label in SfRangeSlider.
Declaration
public LabelPlacement LabelPlacement { get; set; }
Property Value
Type | Description |
---|---|
LabelPlacement | The default value is BottomRight . |
Maximum
Gets or sets the value of Maximum. The thumb cannot be moved after that value in SfRangeSlider.
Declaration
public double Maximum { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 100. |
Minimum
Gets or sets the value of Minimum. The thumb cannot be moved beyond that value in SfRangeSlider.
Declaration
public double Minimum { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0. |
MinimumRange
Gets or sets a value indicating range betwwen the thumbs in the SfRangeSlider.
Declaration
public double MinimumRange { get; set; }
Property Value
Type |
---|
System.Double |
Orientation
Gets or sets a value that determines the orientation of the control either vertical or horizontal.
Declaration
public Orientation Orientation { get; set; }
Property Value
Type | Description |
---|---|
Orientation | The default value is Vertical. |
RangeEnd
Gets or sets the value of RangeEnd. This property can be used to change the end range of value in SfRangeSlider.
Declaration
public double RangeEnd { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 100. |
RangeStart
Gets or sets the value of RangeStart. This property can be used to change the start range of value in SfRangeSlider.
Declaration
public double RangeStart { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0. |
ShowCustomLabel
Gets or sets a value indicating whether gets or sets a value that indicates whether to show/hide the custom label representation in SfRangeSlider.
Declaration
public bool ShowCustomLabel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is |
ShowRange
Gets or sets a value indicating whether gets or sets a value that indicates whether to enable the label or not in SfRangeSlider.
Declaration
public bool ShowRange { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is |
ShowValueLabel
Gets or sets a value indicating whether gets or sets a value that indicates whether the value label has to be shown in SfRangeSlider.
Declaration
public bool ShowValueLabel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is |
SnapsTo
Gets or sets the value of SnapsTo. This property determines whether RangeSlider snaps to steps or ticks.
Declaration
public SnapsTo SnapsTo { get; set; }
Property Value
Type | Description |
---|---|
SnapsTo | The default value is StepValues. |
StepFrequency
Gets or sets the value of StepFrequency. It determines the intervals of thumb step movement.
Declaration
public double StepFrequency { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 20. |
ThumbBorderColor
Gets or sets the value of ThumbBorderColor. This property can be used to change the thumb border color in SfRangeSlider.
Declaration
public Color ThumbBorderColor { get; set; }
Property Value
Type |
---|
Xamarin.Forms.Color |
ThumbBorderThickness
Gets or sets the value of ThumbBorderThickness. This property can be used to change the thumb border thickness in SfRangeSlider.
Declaration
public float ThumbBorderThickness { get; set; }
Property Value
Type |
---|
System.Single |
ThumbSize
Gets or sets the size of the knob and scales it.
Declaration
public double ThumbSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1. |
TickColor
Gets or sets the value of TickColor. This property can be used to change the color of ticks in SfRangeSlider.
Declaration
public Color TickColor { get; set; }
Property Value
Type |
---|
Xamarin.Forms.Color |
TickFrequency
Gets or sets the value of TickFrequency. This property can be used to change the tick frequency in SfRangeSlider.
Declaration
public double TickFrequency { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 10. |
TickPlacement
Gets or sets the value of TickPlacement. This property can be used to change the position of ticks in SfRangeSlider.
Declaration
public TickPlacement TickPlacement { get; set; }
Property Value
Type | Description |
---|---|
TickPlacement | The default value is TopLeft. |
ToolTipBackgroundColor
Gets or sets the value of ToolTipBackgroundColor. This property can be used to change the background color of tooltip in SfRangeSlider.
Declaration
public Color ToolTipBackgroundColor { get; set; }
Property Value
Type |
---|
Xamarin.Forms.Color |
ToolTipPlacement
Gets or sets the value of ToolTipPlacement. This property can be used to change the position of tooltip in SfRangeSlider.
Declaration
public ToolTipPlacement ToolTipPlacement { get; set; }
Property Value
Type | Description |
---|---|
ToolTipPlacement | The default value is TopLeft. |
ToolTipPrecision
Gets or sets a value that determines the number of digits to be displayed in tooltip.
Declaration
public int ToolTipPrecision { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The default value is 0. |
ToolTipTextColor
Gets or sets the value of ToolTipTextColor. This property can be used to change the text color of tooltip in SfRangeSlider.
Declaration
public Color ToolTipTextColor { get; set; }
Property Value
Type |
---|
Xamarin.Forms.Color |
TrackColor
Gets or sets the value of TrackColor. This property can be used to change the track color in SfRangeSlider.
Declaration
public Color TrackColor { get; set; }
Property Value
Type |
---|
Xamarin.Forms.Color |
TrackCornerRadius
Gets or sets the value of TrackCornerRadius. This property can be used to change the track corner radius in SfRangeSlider.
Declaration
public double TrackCornerRadius { get; set; }
Property Value
Type |
---|
System.Double |
TrackSelectionColor
Gets or sets the value of TrackSelectionColor. This property can be used to change the track selection color in SfRangeSlider.
Declaration
public Color TrackSelectionColor { get; set; }
Property Value
Type |
---|
Xamarin.Forms.Color |
TrackSelectionThickness
Gets or sets the value of TrackSelectionThickness. This property can be used to change the thickness of track selection in SfRangeSlider.
Declaration
public float TrackSelectionThickness { get; set; }
Property Value
Type |
---|
System.Single |
TrackThickness
Gets or sets the thickness of track. This property can be used to change the trck thickness in SfRangeSlider.
Declaration
public float TrackThickness { get; set; }
Property Value
Type |
---|
System.Single |
Value
Gets or sets the value that determines the current position of thumb in single thumb representation.
Declaration
public double Value { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 100. |
ValueChangeMode
Gets or sets the value of ValueChangeMode. This property can be used to change the mode of the value changing in SfRangeSlider.
Declaration
public ValueChangeMode ValueChangeMode { get; set; }
Property Value
Type |
---|
ValueChangeMode |
ValuePlacement
Gets or sets the value of ValuePlacement. This property can be used to change the position of value in SfRangeSlider.
Declaration
public ValuePlacement ValuePlacement { get; set; }
Property Value
Type | Description |
---|---|
ValuePlacement | The default value is BottomRight. |
Methods
add_DragCompleted(SfRangeSlider.DragThumbEventHandler)
Declaration
public void add_DragCompleted(SfRangeSlider.DragThumbEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
SfRangeSlider.DragThumbEventHandler | value |
add_DragStarted(SfRangeSlider.DragThumbEventHandler)
Declaration
public void add_DragStarted(SfRangeSlider.DragThumbEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
SfRangeSlider.DragThumbEventHandler | value |
add_RangeChanging(SfRangeSlider.RangeEventHandler)
Declaration
public void add_RangeChanging(SfRangeSlider.RangeEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
SfRangeSlider.RangeEventHandler | value |
add_ValueChanging(SfRangeSlider.ValueEventHandler)
Declaration
public void add_ValueChanging(SfRangeSlider.ValueEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
SfRangeSlider.ValueEventHandler | value |
OnSizeRequest(Double, Double)
Raises the size request event.
Declaration
protected override SizeRequest OnSizeRequest(double widthConstraint, double heightConstraint)
Parameters
Type | Name | Description |
---|---|---|
System.Double | widthConstraint | Width constraint. |
System.Double | heightConstraint | Height constraint. |
Returns
Type | Description |
---|---|
Xamarin.Forms.SizeRequest | returns the size. |
remove_DragCompleted(SfRangeSlider.DragThumbEventHandler)
Declaration
public void remove_DragCompleted(SfRangeSlider.DragThumbEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
SfRangeSlider.DragThumbEventHandler | value |
remove_DragStarted(SfRangeSlider.DragThumbEventHandler)
Declaration
public void remove_DragStarted(SfRangeSlider.DragThumbEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
SfRangeSlider.DragThumbEventHandler | value |
remove_RangeChanging(SfRangeSlider.RangeEventHandler)
Declaration
public void remove_RangeChanging(SfRangeSlider.RangeEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
SfRangeSlider.RangeEventHandler | value |
remove_ValueChanging(SfRangeSlider.ValueEventHandler)
Declaration
public void remove_ValueChanging(SfRangeSlider.ValueEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
SfRangeSlider.ValueEventHandler | value |
Events
DragCompleted
It occurs when complete dragging in SfRangeSlider.
Declaration
public event SfRangeSlider.DragThumbEventHandler DragCompleted
Event Type
Type |
---|
SfRangeSlider.DragThumbEventHandler |
DragStarted
It occurs when start dragging in SfRangeSlider
Declaration
public event SfRangeSlider.DragThumbEventHandler DragStarted
Event Type
Type |
---|
SfRangeSlider.DragThumbEventHandler |
RangeChanging
It occurs when range changes in SfRangeSlider.
Declaration
public event SfRangeSlider.RangeEventHandler RangeChanging
Event Type
Type |
---|
SfRangeSlider.RangeEventHandler |
ThumbTouchDown
It occurs when TouchDown SfRangeSlider.
Declaration
public event EventHandler<DragThumbEventArgs> ThumbTouchDown
Event Type
Type |
---|
System.EventHandler<DragThumbEventArgs> |
ThumbTouchUp
It occurs when ThumbTouchUp SfRangeSlider.
Declaration
public event EventHandler<DragThumbEventArgs> ThumbTouchUp
Event Type
Type |
---|
System.EventHandler<DragThumbEventArgs> |
ValueChanging
It occurs when value changes in SfRangeSlider.
Declaration
public event SfRangeSlider.ValueEventHandler ValueChanging
Event Type
Type |
---|
SfRangeSlider.ValueEventHandler |