MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SliderBase<T>

    Show / Hide Table of Contents

    Class SliderBase<T>

    SliderBase<T> is a base class for SfSlider, and SfDateTimeSlider.

    Inheritance
    System.Object
    SfView
    RangeView<T>
    SliderBase<T>
    SfDateTimeSlider
    SfSlider
    Implements
    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<Microsoft.Maui.IView>
    System.Collections.Generic.ICollection<Microsoft.Maui.IView>
    System.Collections.Generic.IEnumerable<Microsoft.Maui.IView>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.IVisualTreeElement
    IOrientationElement
    Inherited Members
    RangeView<T>.MinimumProperty
    RangeView<T>.MaximumProperty
    RangeView<T>.IntervalProperty
    RangeView<T>.MinorTicksPerIntervalProperty
    RangeView<T>.ShowTicksProperty
    RangeView<T>.ShowLabelsProperty
    RangeView<T>.ShowDividersProperty
    RangeView<T>.IsInversedProperty
    RangeView<T>.TrackExtentProperty
    RangeView<T>.LabelsPlacementProperty
    RangeView<T>.EdgeLabelsPlacementProperty
    RangeView<T>.EnableDeferredUpdateProperty
    RangeView<T>.DeferredUpdateDelayProperty
    RangeView<T>.TrackStyleProperty
    RangeView<T>.ThumbStyleProperty
    RangeView<T>.ThumbOverlayStyleProperty
    RangeView<T>.DividerStyleProperty
    RangeView<T>.MajorTickStyleProperty
    RangeView<T>.MinorTickStyleProperty
    RangeView<T>.LabelStyleProperty
    RangeView<T>.TooltipProperty
    RangeView<T>.DragStartedCommandProperty
    RangeView<T>.DragStartedCommandParameterProperty
    RangeView<T>.DragCompletedCommandProperty
    RangeView<T>.DragCompletedCommandParameterProperty
    RangeView<T>.ChangeVisualState()
    RangeView<T>.OnBindingContextChanged()
    RangeView<T>.OnPropertyChanged(String)
    RangeView<T>.OnHandlerChanged()
    RangeView<T>.MeasureContent(Double, Double)
    RangeView<T>.ArrangeContent(Rect)
    RangeView<T>.OnDraw(ICanvas, RectF)
    RangeView<T>.Minimum
    RangeView<T>.Maximum
    RangeView<T>.Interval
    RangeView<T>.MinorTicksPerInterval
    RangeView<T>.ShowDividers
    RangeView<T>.ShowTicks
    RangeView<T>.ShowLabels
    RangeView<T>.IsInversed
    RangeView<T>.TrackExtent
    RangeView<T>.LabelsPlacement
    RangeView<T>.EdgeLabelsPlacement
    RangeView<T>.EnableDeferredUpdate
    RangeView<T>.DeferredUpdateDelay
    RangeView<T>.TrackStyle
    RangeView<T>.ThumbStyle
    RangeView<T>.ThumbOverlayStyle
    RangeView<T>.DividerStyle
    RangeView<T>.MajorTickStyle
    RangeView<T>.MinorTickStyle
    RangeView<T>.LabelStyle
    RangeView<T>.Tooltip
    RangeView<T>.DragStartedCommand
    RangeView<T>.DragStartedCommandParameter
    RangeView<T>.DragCompletedCommand
    RangeView<T>.DragCompletedCommandParameter
    RangeView<T>.ValueChangeStart
    RangeView<T>.ValueChangeEnd
    RangeView<T>.LabelCreated
    SfView.MeasureOverride(Double, Double)
    SfView.ArrangeOverride(Rect)
    SfView.OnMeasure(Double, Double)
    SfView.IDrawableLayout.InvalidateDrawable()
    SfView.Children
    SfView.ClipToBounds
    SfView.Padding
    SfView.IDrawableLayout.DrawingOrder
    Namespace: Syncfusion.Maui.Sliders
    Assembly: Syncfusion.Maui.Sliders.dll
    Syntax
    public abstract class SliderBase<T> : RangeView<T>, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, IVisualTreeElement, ITouchListener, ITapGestureListener, IPanGestureListener, IGestureListener, IOrientationElement
    Type Parameters
    Name Description
    T

    Constructors

    SliderBase()

    Declaration
    protected SliderBase()

    Fields

    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.

    ThumbIconProperty

    The backing store for the ThumbIcon field.

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

    Microsoft.Maui.Controls.BindableProperty.

    ValueProperty

    The backing store for the Value field.

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

    Microsoft.Maui.Controls.BindableProperty.

    Properties

    Orientation

    Gets or sets the orientation of the SfSlider and SfDateTimeSlider.

    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 Horizontal.

    Examples

    Snippet for SfSlider

    • XAML
    • C#
    <sliders:SfSlider Orientation = "Vertical" />
    SfSlider slider = new SfSlider()
    {
        Orientation = SliderOrientation.Vertical
    };

    Snippet for SfDateTimeSlider

    • XAML
    • C#
    <sliders:SfDateTimeSlider Orientation = "Vertical" />
    SfDateTimeSlider slider = new SfDateTimeSlider()
    {
        Orientation = SliderOrientation.Vertical
    };

    ThumbIcon

    Gets or sets the value for the thumb of the of the SfSlider and SfDateTimeSlider.

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

    Defaults to null.

    Examples

    Snippet for SfSlider

    • XAML
    • C#
    <sliders:SfSlider>
       <sliders:SfSlider.ThumbIcon>
         <Rectangle Fill="Black" 
                    HeightRequest = "30" 
                    WidthRequest="30" />
       </sliders:SfSlider.StartThumbIcon>
    </sliders:SfSlider>
    SfSlider slider = new SfSlider()
    slider.ThumbIcon = new Microsoft.Maui.Controls.Shapes.Rectangle()
    {
        Fill=Brush.Black,
        HeightRequest = 35,
        WidthRequest = 35
    };

    Snippet for SfDateTimeSlider

    • XAML
    • C#
    <sliders:SfDateTimeSlider>
       <sliders:SfDateTimeSlider.ThumbIcon>
         <Rectangle Fill="Black" 
                    HeightRequest = "30" 
                    WidthRequest="30" />
       </sliders:SfDateTimeSlider.StartThumbIcon>
    </sliders:SfDateTimeSlider>
    SfDateTimeSlider slider = new SfDateTimeSlider()
    slider.ThumbIcon = new Microsoft.Maui.Controls.Shapes.Rectangle()
    {
        Fill=Brush.Black,
        HeightRequest = 35,
        WidthRequest = 35
    };

    Value

    Gets or sets the current value of the SfSlider and SfDateTimeSlider.

    Declaration
    public T Value { get; set; }
    Property Value
    Type Description
    T

    Defaults to 0.5 for SfSlider and null for SfDateTimeSlider.

    Examples

    Snippet for SfSlider

    • XAML
    • C#
    <sliders:SfSlider Value = "0.3" />
    SfSlider slider = new SfSlider() { Value = 0.3 };

    Snippet for SfDateTimeSlider

    • XAML
    • C#
    <sliders:SfDateTimeSlider Value = "2010-1-1" />
    SfDateTimeSlider slider = new SfDateTimeSlider()
    {
        Value = new DateTime(2010, 1, 1)
    };

    Explicit Interface Implementations

    IOrientationElement.OnOrientationChanged(SliderOrientation)

    Declaration
    void IOrientationElement.OnOrientationChanged(SliderOrientation newValue)
    Parameters
    Type Name Description
    SliderOrientation newValue

    Implements

    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<>
    System.Collections.Generic.ICollection<>
    System.Collections.Generic.IEnumerable<>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.IVisualTreeElement
    IOrientationElement
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved