Class SliderBase<T>
SliderBase<T> is a base class for SfSlider, and SfDateTimeSlider.
Implements
Inherited Members
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, ICrossPlatformLayout, IVisualTreeElement, ISemanticsProvider, ITouchListener, ITapGestureListener, IPanGestureListener, IGestureListener, IInteractionState, IOrientationElement
Type Parameters
Name |
---|
T |
Constructors
SliderBase()
Initializes a new instance of the SfSlider and SfDateTimeSlider classes.
Declaration
public 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 |
Examples
Snippet for SfSlider
Snippet for SfDateTimeSlider
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 |
Examples
Snippet for SfSlider
<sliders:SfSlider>
<sliders:SfSlider.ThumbIcon>
<Rectangle Fill="Black"
HeightRequest = "30"
WidthRequest="30" />
</sliders:SfSlider.StartThumbIcon>
</sliders:SfSlider>
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider>
<sliders:SfDateTimeSlider.ThumbIcon>
<Rectangle Fill="Black"
HeightRequest = "30"
WidthRequest="30" />
</sliders:SfDateTimeSlider.StartThumbIcon>
</sliders:SfDateTimeSlider>
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 |
Examples
Snippet for SfSlider
Snippet for SfDateTimeSlider
Explicit Interface Implementations
IOrientationElement.OnOrientationChanged(SliderOrientation)
Declaration
void IOrientationElement.OnOrientationChanged(SliderOrientation newValue)
Parameters
Type | Name | Description |
---|---|---|
SliderOrientation | newValue |