MAUI

User Guide Demos Support Forums Download
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfRangeSelector - MAUI API Reference | Syncfusion SfRangeSelector. ">

    Show / Hide Table of Contents

    Class SfRangeSelector

    A material design for SfRangeSelector.

    Inheritance
    System.Object
    SliderBase
    RangeSliderBase
    NumericRangeSliderBase
    SfRangeSelector
    Implements
    Microsoft.Maui.IContentView
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IPadding
    INumericElement
    IRangeSelectorElement
    Inherited Members
    NumericRangeSliderBase.MinimumProperty
    NumericRangeSliderBase.MaximumProperty
    NumericRangeSliderBase.NumberFormatProperty
    NumericRangeSliderBase.StepSizeProperty
    NumericRangeSliderBase.RangeStartProperty
    NumericRangeSliderBase.RangeEndProperty
    NumericRangeSliderBase.INumericElement.OnMinimumChanged(Double, Double)
    NumericRangeSliderBase.INumericElement.OnMaximumChanged(Double, Double)
    NumericRangeSliderBase.INumericElement.OnNumberFormatChanged(String, String)
    NumericRangeSliderBase.Minimum
    NumericRangeSliderBase.Maximum
    NumericRangeSliderBase.RangeStart
    NumericRangeSliderBase.RangeEnd
    NumericRangeSliderBase.StepSize
    NumericRangeSliderBase.NumberFormat
    RangeSliderBase.StartThumbIconProperty
    RangeSliderBase.EndThumbIconProperty
    RangeSliderBase.DragBehaviorProperty
    RangeSliderBase.EnableIntervalSelectionProperty
    RangeSliderBase.StartThumbIcon
    RangeSliderBase.EndThumbIcon
    RangeSliderBase.DragBehavior
    RangeSliderBase.EnableIntervalSelection
    SliderBase.IsInversedProperty
    SliderBase.ShowDividersProperty
    SliderBase.ShowTicksProperty
    SliderBase.ShowLabelsProperty
    SliderBase.IntervalProperty
    SliderBase.MinorTicksPerIntervalProperty
    SliderBase.LabelsPlacementProperty
    SliderBase.TrackStyleProperty
    SliderBase.DividerStyleProperty
    SliderBase.MajorTickStyleProperty
    SliderBase.MinorTickStyleProperty
    SliderBase.ThumbStyleProperty
    SliderBase.ThumbOverlayStyleProperty
    SliderBase.LabelStyleProperty
    SliderBase.TooltipProperty
    SliderBase.ChangeVisualState()
    SliderBase.OnPropertyChanged(String)
    SliderBase.OnHandlerChanged()
    SliderBase.IsInversed
    SliderBase.ShowDividers
    SliderBase.ShowTicks
    SliderBase.ShowLabels
    SliderBase.Interval
    SliderBase.MinorTicksPerInterval
    SliderBase.LabelsPlacement
    SliderBase.TrackStyle
    SliderBase.DividerStyle
    SliderBase.MajorTickStyle
    SliderBase.MinorTickStyle
    SliderBase.ThumbStyle
    SliderBase.ThumbOverlayStyle
    SliderBase.LabelStyle
    SliderBase.Tooltip
    SliderBase.ValueChangeStart
    SliderBase.ValueChangeEnd
    SliderBase.LabelCreated
    Namespace: Syncfusion.Maui.Sliders
    Assembly: Syncfusion.Maui.Sliders.dll
    Syntax
    public class SfRangeSelector : NumericRangeSliderBase, IContentView, IView, IElement, ITransform, IPadding, IDrawableLayout, ITouchListener, ITapGestureListener, IPanGestureListener, IGestureListener, INumericElement, IRangeSelectorElement

    Constructors

    SfRangeSelector()

    Initializes a new instance of the SfRangeSelector class.

    Declaration
    public SfRangeSelector()

    Fields

    ActiveRegionFillProperty

    The backing store for the ActiveRegionFill bindable field.

    Declaration
    public static readonly BindableProperty ActiveRegionFillProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    Microsoft.Maui.Controls.BindableProperty.

    ActiveRegionStrokeProperty

    The backing store for the ActiveRegionStroke bindable field.

    Declaration
    public static readonly BindableProperty ActiveRegionStrokeProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    Microsoft.Maui.Controls.BindableProperty.

    ActiveRegionStrokeThicknessProperty

    The backing store for the ActiveRegionStrokeThickness bindable field.

    Declaration
    public static readonly BindableProperty ActiveRegionStrokeThicknessProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    Microsoft.Maui.Controls.BindableProperty.

    ContentProperty

    The backing store for the Content bindable field.

    Declaration
    public static readonly BindableProperty ContentProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    Microsoft.Maui.Controls.BindableProperty.

    InactiveRegionFillProperty

    The backing store for the InactiveRegionFill bindable field.

    Declaration
    public static readonly BindableProperty InactiveRegionFillProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    Microsoft.Maui.Controls.BindableProperty.

    InactiveRegionStrokeProperty

    The backing store for the InactiveRegionStroke bindable field.

    Declaration
    public static readonly BindableProperty InactiveRegionStrokeProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    Microsoft.Maui.Controls.BindableProperty.

    InactiveRegionStrokeThicknessProperty

    The backing store for the InactiveRegionStrokeThickness bindable field.

    Declaration
    public static readonly BindableProperty InactiveRegionStrokeThicknessProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    Microsoft.Maui.Controls.BindableProperty.

    Properties

    ActiveRegionFill

    Gets or sets the color for the active region of Range Selector.

    Declaration
    public Brush ActiveRegionFill { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Controls.Brush

    Defaults to null.

    Examples
    • XAML
    • C#
    <sliders:SfRangeSelector ActiveRegionFill = "Red" />
    SfRangeSelector rangeSelector = new SfRangeSelector();
    rangeSelector.ActiveRegionFill = new SolidColorBrush(Colors.Red);

    ActiveRegionStroke

    Gets or sets the color to the ActiveRegionStroke.

    Declaration
    public Brush ActiveRegionStroke { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Controls.Brush

    Defaults to null.

    Examples
    • XAML
    • C#
    <sliders:SfRangeSelector ActiveRegionStroke = "Red" />
    SfRangeSelector rangeSelector = new SfRangeSelector();
    rangeSelector.ActiveRegionStroke = new SolidColorBrush(Colors.Red);

    ActiveRegionStrokeThickness

    Gets or sets the color to the ActiveRegionStrokeThickness.

    Declaration
    public Thickness ActiveRegionStrokeThickness { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Thickness

    Defaults to null.

    Examples
    • XAML
    • C#
    <sliders:SfRangeSelector ActiveRegionStroke = "Red"
                             ActiveRegionStrokeThickness = "3" />
    SfRangeSelector rangeSelector = new SfRangeSelector();
    rangeSelector.ActiveRegionStroke = new SolidColorBrush(Colors.Red);
    rangeSelector.ActiveRegionStrokeThickness = 3;

    Content

    Gets or sets the content to the SfRangeSelector.

    Declaration
    public View Content { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Controls.View

    Defaults to null.

    Examples
    • XAML
    • C#
    <sliders:SfRangeSelector>
        <chart:SfCartesianChart /> 
    </sliders:SfRangeSelector>
    SfRangeSelector rangeSelector = new SfRangeSelector();
    rangeSelector.Content = new SfCartesianChart();

    InactiveRegionFill

    Gets or sets the color to the InactiveRegionColor.

    Declaration
    public Brush InactiveRegionFill { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Controls.Brush

    Defaults to null.

    Examples
    • XAML
    • C#
    <sliders:SfRangeSelector ActiveRegionFill = "Red" />
    SfRangeSelector rangeSelector = new SfRangeSelector();
    rangeSelector.InactiveRegionFill = new SolidColorBrush(Colors.Red);

    InactiveRegionStroke

    Gets or sets the color to the InactiveRegionStroke.

    Declaration
    public Brush InactiveRegionStroke { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Controls.Brush

    Defaults to null.

    Examples
    • XAML
    • C#
    <sliders:SfRangeSelector InactiveRegionStroke = "Red" />
    SfRangeSelector rangeSelector = new SfRangeSelector();
    rangeSelector.InactiveRegionStroke = new SolidColorBrush(Colors.Red);

    InactiveRegionStrokeThickness

    Gets or sets the color to the InactiveRegionStrokeThickness.

    Declaration
    public Thickness InactiveRegionStrokeThickness { get; set; }
    Property Value
    Type Description
    Microsoft.Maui.Thickness

    Defaults to null.

    Examples
    • XAML
    • C#
    <sliders:SfRangeSelector InactiveRegionStroke = "Red"
                             InactiveRegionStrokeThickness = "3" />
    SfRangeSelector rangeSelector = new SfRangeSelector();
    rangeSelector.InactiveRegionStroke = new SolidColorBrush(Colors.Red);
    rangeSelector.InactiveRegionStroke = 3;

    Methods

    OnBindingContextChanged()

    Declaration
    protected override void OnBindingContextChanged()
    Overrides
    RangeSliderBase.OnBindingContextChanged()

    Events

    ValueChanged

    Represents the ValueChanged event, which occurs when the user is done selecting a new value for the Range Selector.

    Declaration
    public event EventHandler<RangeSelectorValueChangedEventArgs> ValueChanged
    Event Type
    Type Description
    System.EventHandler<RangeSelectorValueChangedEventArgs>
    Examples
    • XAML
    • C#
    <sliders:SfRangeSelector ValueChanged="OnValueChanged" />
    SfRangeSelector rangeSelector = new SfRangeSelector()
    {
        ValueChanged += OnValueChanged
    }
    private void OnValueChanged(object sender, RangeSelectorValueChangedEventArgs e)
    {
    }

    ValueChanging

    Represents the ValueChanging event, which occurs when the user is selecting a new value for the Range Selector by dragging any one of the thumb.

    Declaration
    public event EventHandler<RangeSelectorValueChangingEventArgs> ValueChanging
    Event Type
    Type Description
    System.EventHandler<RangeSelectorValueChangingEventArgs>
    Examples
    • XAML
    • C#
    <sliders:SfRangeSelector ValueChanging="OnValueChanging" />
    SfRangeSelector rangeSelector = new SfRangeSelector()
    {
        ValueChanging += OnValueChanging
    }
    private void OnValueChanging(object sender, RangeSelectorValueChangingEventArgs e)
    {
    }

    Explicit Interface Implementations

    IRangeSelectorElement.OnContentChanged(Object, Object)

    Declaration
    void IRangeSelectorElement.OnContentChanged(object oldValue, object newValue)
    Parameters
    Type Name Description
    System.Object oldValue
    System.Object newValue

    IRangeSelectorElement.OnRegionStylePropertyChanged(Object, Object)

    Declaration
    void IRangeSelectorElement.OnRegionStylePropertyChanged(object oldValue, object newValue)
    Parameters
    Type Name Description
    System.Object oldValue
    System.Object newValue

    Implements

    Microsoft.Maui.IContentView
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IPadding
    INumericElement
    IRangeSelectorElement
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved