New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents a slider control that displays a value in a given min-max range. The end user can change the value by dragging the thumb. This control can display ticks and labels for clarity of what the underlying min-max range is, and can display tooltips for clarity of what the value is.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class RadSlider : RadSliderBase, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout

Inheritance: objectRadContentViewRadSliderBaseRadSlider

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadContentViewITransformIView...

Inherited Members RadSliderBase.ControlTemplatePropertyRadSliderBase.MinimumPropertyRadSliderBase.MaximumPropertyRadSliderBase.TickStepPropertyRadSliderBase.LabelStepPropertyRadSliderBase.StringFormatPropertyRadSliderBase.StringConverterPropertyRadSliderBase.BackTrackThicknessPropertyRadSliderBase.BackTrackStylePropertyRadSliderBase.TicksPlacementPropertyRadSliderBase.InRangeTickColorPropertyRadSliderBase.OutOfRangeTickColorPropertyRadSliderBase.TickLengthPropertyRadSliderBase.TickThicknessPropertyRadSliderBase.InRangeTickStylePropertyRadSliderBase.OutOfRangeTickStylePropertyRadSliderBase.TickStyleSelectorPropertyRadSliderBase.TickTemplatePropertyRadSliderBase.LabelsPlacementPropertyRadSliderBase.TextColorPropertyRadSliderBase.FontFamilyPropertyRadSliderBase.FontSizePropertyRadSliderBase.LabelStylePropertyRadSliderBase.LabelStyleSelectorPropertyRadSliderBase.LabelTemplatePropertyRadSliderBase.SnapModePropertyRadSliderBase.TickOriginPropertyRadSliderBase.BackTrackExtentPropertyRadSliderBase.BackTrackColorPropertyRadSliderBase.RangeTrackFillPropertyRadSliderBase.RangeTrackStylePropertyRadSliderBase.ActualBackTrackStylePropertyRadSliderBase.ActualRangeTrackStylePropertyRadSliderBase.TooltipStringFormatPropertyRadSliderBase.TooltipContentTemplatePropertyRadSliderBase.TooltipControlTemplatePropertyRadSliderBase.OnApplyTemplate()RadSliderBase.MeasureOverride(double, double)RadSliderBase.ArrangeOverride(Rect)RadSliderBase.ChangeVisualState()RadSliderBase.ControlTemplateRadSliderBase.MinimumRadSliderBase.MaximumRadSliderBase.TickStepRadSliderBase.LabelStepRadSliderBase.StringFormatRadSliderBase.StringConverterRadSliderBase.BackTrackThicknessRadSliderBase.BackTrackStyleRadSliderBase.ActualBackTrackStyleRadSliderBase.TicksPlacementRadSliderBase.InRangeTickColorRadSliderBase.OutOfRangeTickColorRadSliderBase.TickLengthRadSliderBase.TickThicknessRadSliderBase.InRangeTickStyleRadSliderBase.OutOfRangeTickStyleRadSliderBase.TickStyleSelectorRadSliderBase.TickTemplateRadSliderBase.LabelsPlacementRadSliderBase.TextColorRadSliderBase.FontFamilyRadSliderBase.FontSizeRadSliderBase.LabelStyleRadSliderBase.LabelStyleSelectorRadSliderBase.LabelTemplateRadSliderBase.SnapModeRadSliderBase.TickOriginRadSliderBase.BackTrackExtentRadSliderBase.BackTrackColorRadSliderBase.RangeTrackFillRadSliderBase.RangeTrackStyleRadSliderBase.ActualRangeTrackStyleRadSliderBase.TooltipStringFormatRadSliderBase.TooltipContentTemplateRadSliderBase.TooltipControlTemplateRadContentView.ActualStyleClassPropertyRadContentView.OnChildAdded(Element)RadContentView.OnChildRemoved(Element, int)RadContentView.OnBindingContextChanged()RadContentView.OnHandlerChanged()...

Constructors

Initalizes a new instance of the class.

C#
public RadSlider()

Fields

ActualThumbStyleProperty

BindableProperty

Identifies the ActualThumbStyle property.

C#
public static readonly BindableProperty ActualThumbStyleProperty

DragModeProperty

BindableProperty

Identifies the DragMode property.

C#
public static readonly BindableProperty DragModeProperty

OriginValueProperty

BindableProperty

Identifies the OriginValue property.

C#
public static readonly BindableProperty OriginValueProperty

ThumbFillProperty

BindableProperty

Identifies the ThumbFill property.

C#
public static readonly BindableProperty ThumbFillProperty

ThumbStyleProperty

BindableProperty

Identifies the ThumbStyle property.

C#
public static readonly BindableProperty ThumbStyleProperty

ValueProperty

BindableProperty

Identifies the Value property.

C#
public static readonly BindableProperty ValueProperty

Properties

Gets or sets the actual style that will be applied to the slider thumb. This is a merger of the custom ThumbStyle and the default style.

C#
public Style ActualThumbStyle { get; }

Gets or sets the mode that defines the possible ways to interact and change the Value.

C#
public SliderDragMode DragMode { get; set; }

Gets or sets the origin value, i.e. where the range track starts.

C#
public double OriginValue { get; set; }

Gets or sets the custom color that is to be applied to the thumb.

C#
public Color ThumbFill { get; set; }

Gets or sets the custom style that is to be applied to the slider thumb. This style is merged with the default style and the resulting merged style is set to the ActualThumbStyle property, and this is the style that is actually applied to the element.

C#
public Style ThumbStyle { get; set; }

Gets or sets the value of the slider.

C#
public double Value { get; set; }

Events

ValueChanging

EventHandler<ValueChangingEventArgs>

An event that is raise when the end-user drags the thumb. This event allows for plugging in custom logic by changing the Value property.

C#
public event EventHandler<ValueChangingEventArgs> ValueChanging