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

Represents a slider control.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

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

Inheritance: objectRadContentViewRadSliderBase

Derived Classes: RadRangeSliderRadSlider

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadContentViewITransformIView...

Inherited Members RadContentView.ActualStyleClassPropertyRadContentView.OnChildAdded(Element)RadContentView.OnChildRemoved(Element, int)RadContentView.OnBindingContextChanged()RadContentView.OnHandlerChanged()

Constructors

Initalizes a new instance of the class.

C#
public RadSliderBase()

Fields

Identifies the ActualBackTrackStyle property.

C#
public static readonly BindableProperty ActualBackTrackStyleProperty

Identifies the ActualRangeTrackStyle property.

C#
public static readonly BindableProperty ActualRangeTrackStyleProperty

BackTrackColorProperty

BindableProperty

Identifies the BackTrackColor property.

C#
public static readonly BindableProperty BackTrackColorProperty

BackTrackExtentProperty

BindableProperty

Identifies the BackTrackExtent property.

C#
public static readonly BindableProperty BackTrackExtentProperty

BackTrackStyleProperty

BindableProperty

Identifies the BackTrackStyle property.

C#
public static readonly BindableProperty BackTrackStyleProperty

Identifies the BackTrackThickness property.

C#
public static readonly BindableProperty BackTrackThicknessProperty

ControlTemplateProperty

BindableProperty

Identifies the ControlTemplate property.

C#
public static readonly BindableProperty ControlTemplateProperty

FontFamilyProperty

BindableProperty

Identifies the FontFamily property.

C#
public static readonly BindableProperty FontFamilyProperty

FontSizeProperty

BindableProperty

Identifies the FontSize property.

C#
public static readonly BindableProperty FontSizeProperty

InRangeTickColorProperty

BindableProperty

Identifies the InRangeTickColor property.

C#
public static readonly BindableProperty InRangeTickColorProperty

InRangeTickStyleProperty

BindableProperty

Identifies the InRangeTickStyle property.

C#
public static readonly BindableProperty InRangeTickStyleProperty

LabelsPlacementProperty

BindableProperty

Identifies the LabelsPlacement property.

C#
public static readonly BindableProperty LabelsPlacementProperty

LabelStepProperty

BindableProperty

Identifies the LabelStep property.

C#
public static readonly BindableProperty LabelStepProperty

LabelStyleProperty

BindableProperty

Identifies the LabelStyle property.

C#
public static readonly BindableProperty LabelStyleProperty

Identifies the LabelStyleSelector property.

C#
public static readonly BindableProperty LabelStyleSelectorProperty

LabelTemplateProperty

BindableProperty

Identifies the LabelTemplate property.

C#
public static readonly BindableProperty LabelTemplateProperty

MaximumProperty

BindableProperty

Identifies the Maximum property.

C#
public static readonly BindableProperty MaximumProperty

MinimumProperty

BindableProperty

Identifies the Minimum property.

C#
public static readonly BindableProperty MinimumProperty

Identifies the OutOfRangeTickColor property.

C#
public static readonly BindableProperty OutOfRangeTickColorProperty

Identifies the OutOfRangeTickStyle property.

C#
public static readonly BindableProperty OutOfRangeTickStyleProperty

RangeTrackFillProperty

BindableProperty

Identifies the RangeTrackFill property.

C#
public static readonly BindableProperty RangeTrackFillProperty

RangeTrackStyleProperty

BindableProperty

Identifies the RangeTrackStyle property.

C#
public static readonly BindableProperty RangeTrackStyleProperty

SnapModeProperty

BindableProperty

Identifies the SnapMode property.

C#
public static readonly BindableProperty SnapModeProperty

StringConverterProperty

BindableProperty

Identifies the StringConverter property.

C#
public static readonly BindableProperty StringConverterProperty

StringFormatProperty

BindableProperty

Identifies the StringFormat property.

C#
public static readonly BindableProperty StringFormatProperty

TextColorProperty

BindableProperty

Identifies the TextColor property.

C#
public static readonly BindableProperty TextColorProperty

TickLengthProperty

BindableProperty

Identifies the TickLength property.

C#
public static readonly BindableProperty TickLengthProperty

TickOriginProperty

BindableProperty

Identifies the TickOrigin property.

C#
public static readonly BindableProperty TickOriginProperty

TicksPlacementProperty

BindableProperty

Identifies the TicksPlacement property.

C#
public static readonly BindableProperty TicksPlacementProperty

TickStepProperty

BindableProperty

Identifies the TickStep property.

C#
public static readonly BindableProperty TickStepProperty

Identifies the TickStyleSelector property.

C#
public static readonly BindableProperty TickStyleSelectorProperty

TickTemplateProperty

BindableProperty

Identifies the TickTemplate property.

C#
public static readonly BindableProperty TickTemplateProperty

TickThicknessProperty

BindableProperty

Identifies the TickThickness property.

C#
public static readonly BindableProperty TickThicknessProperty

Identifies the TooltipContentTemplate property.

C#
public static readonly BindableProperty TooltipContentTemplateProperty

Identifies the TooltipControlTemplate property.

C#
public static readonly BindableProperty TooltipControlTemplateProperty

Identifies the TooltipStringFormat property.

C#
public static readonly BindableProperty TooltipStringFormatProperty

Properties

Gets or sets the actual style that will be applied to the back-track. This is a merger of the custom BackTrackStyle and the default style.

C#
public Style ActualBackTrackStyle { get; }

Gets or sets the actual style that will be applied to the range track. This is a merger of the custom RangeTrackStyle and the default style.

C#
public Style ActualRangeTrackStyle { get; }

Gets or sets the custom color that is to be applied to the back-track.

C#
public Color BackTrackColor { get; set; }

Gets or sets the value that defines the pixel length that the back-track extends beyond the min and the max values.

C#
public double BackTrackExtent { get; set; }

Gets or sets the custom style that is to be applied to the back-track.

C#
public Style BackTrackStyle { get; set; }

Gets or sets the custom thickness that is to be applied to the back-track.

C#
public double BackTrackThickness { get; set; }

ControlTemplate

ControlTemplate

Gets or sets the template that defines the visual appearance of the view.

C#
public ControlTemplate ControlTemplate { get; set; }

Gets or sets the custom font family that is to be applied to the labels.

C#
public string FontFamily { get; set; }

Gets or sets the custom font size that is to be applied to the labels.

C#
public double FontSize { get; set; }

Gets or sets the custom color that is to be applied to the ticks that are within the start-end range.

C#
public Color InRangeTickColor { get; set; }

Gets or sets the custom style of the ticks that are within the start-end range.

C#
public Style InRangeTickStyle { get; set; }

Gets or sets the placement of the labels.

C#
public SliderLabelsPlacement LabelsPlacement { get; set; }

Gets or sets the value that is used to calculate at what positions/values should be displayed labels.

C#
public double LabelStep { get; set; }

Gets or sets the custom style of the labels.

C#
public Style LabelStyle { get; set; }

Gets or sets an object that can select different styles for different labels.

C#
public IStyleSelector LabelStyleSelector { get; set; }

LabelTemplate

DataTemplate

Gets or sets the template or template-selector that is used for creating label visuals.

C#
public DataTemplate LabelTemplate { get; set; }

Gets or sets the maximum value.

C#
public double Maximum { get; set; }

Gets or sets the minimum value.

C#
public double Minimum { get; set; }

Gets or sets the custom color that is to be applied to the ticks that are outside of the start-end range.

C#
public Color OutOfRangeTickColor { get; set; }

Gets or sets the custom style of the ticks that are outside of the start-end range.

C#
public Style OutOfRangeTickStyle { get; set; }

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

C#
public Color RangeTrackFill { get; set; }

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

C#
public Style RangeTrackStyle { get; set; }

Gets or sets a value indicating whether and how a value should be snapped to a tick while the end-user is dragging a thumb or the range track (the part between the start and end thumbs).

C#
public SliderSnapMode SnapMode { get; set; }

Gets or sets the custom string converter that can be used to define the content of a label or a tooltip for a given slider value.

C#
public IStringConverter StringConverter { get; set; }

Gets or sets the custom string format that is used for displaying a value. The value of this property is used for displaying labels and also used for displaying tooltips but it has a lower priority than the TooltipStringFormat property.

C#
public string StringFormat { get; set; }

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

C#
public Color TextColor { get; set; }

Gets or sets the custom length of the ticks.

C#
public double TickLength { get; set; }

Gets or sets the custom value that indicates where the ticks originate. The position of the ticks is determined based on the combination of the TickStep and TickOrigin values. The slider will generate the ticks and labels in a way so that a tick would be positioned at the given TickOrigin.

C#
public double TickOrigin { get; set; }

Gets or sets the placement of the ticks.

C#
public SliderTicksPlacement TicksPlacement { get; set; }

Gets or sets the value that is used to calculate at what positions/values should be displayed ticks.

C#
public double TickStep { get; set; }

Gets or sets an object that can select different styles for different ticks.

C#
public IStyleSelector TickStyleSelector { get; set; }

TickTemplate

DataTemplate

Gets or sets the template or template-selector that is used for creating tick visuals.

C#
public DataTemplate TickTemplate { get; set; }

Gets or sets the custom fatness of the ticks.

C#
public double TickThickness { get; set; }

Gets or sets the template or template selector that defines the content of a tooltip.

C#
public DataTemplate TooltipContentTemplate { get; set; }

TooltipControlTemplate

ControlTemplate

Gets or sets the control template of the SliderTooltip, which defines the appearance of the tooltip.

C#
public ControlTemplate TooltipControlTemplate { get; set; }

Gets or sets the custom string format that is used for displaying the content of a tooltip. When this property is null or empty, the StringFormat property is used for displaying the content of a tooltip.

C#
public string TooltipStringFormat { get; set; }

Methods

C#
protected override Size ArrangeOverride(Rect bounds)
Parameters:boundsRectReturns:

Size

C#
protected override void ChangeVisualState()
C#
protected override Size MeasureOverride(double widthConstraint, double heightConstraint)
Parameters:widthConstraintdoubleheightConstraintdoubleReturns:

Size

C#
protected override void OnApplyTemplate()
In this article
DefinitionConstructorsRadSliderBase()FieldsActualBackTrackStylePropertyActualRangeTrackStylePropertyBackTrackColorPropertyBackTrackExtentPropertyBackTrackStylePropertyBackTrackThicknessPropertyControlTemplatePropertyFontFamilyPropertyFontSizePropertyInRangeTickColorPropertyInRangeTickStylePropertyLabelStepPropertyLabelStylePropertyLabelStyleSelectorPropertyLabelTemplatePropertyLabelsPlacementPropertyMaximumPropertyMinimumPropertyOutOfRangeTickColorPropertyOutOfRangeTickStylePropertyRangeTrackFillPropertyRangeTrackStylePropertySnapModePropertyStringConverterPropertyStringFormatPropertyTextColorPropertyTickLengthPropertyTickOriginPropertyTickStepPropertyTickStyleSelectorPropertyTickTemplatePropertyTickThicknessPropertyTicksPlacementPropertyTooltipContentTemplatePropertyTooltipControlTemplatePropertyTooltipStringFormatPropertyPropertiesActualBackTrackStyleActualRangeTrackStyleBackTrackColorBackTrackExtentBackTrackStyleBackTrackThicknessControlTemplateFontFamilyFontSizeInRangeTickColorInRangeTickStyleLabelStepLabelStyleLabelStyleSelectorLabelTemplateLabelsPlacementMaximumMinimumOutOfRangeTickColorOutOfRangeTickStyleRangeTrackFillRangeTrackStyleSnapModeStringConverterStringFormatTextColorTickLengthTickOriginTickStepTickStyleSelectorTickTemplateTickThicknessTicksPlacementTooltipContentTemplateTooltipControlTemplateTooltipStringFormatMethodsArrangeOverride(Rect)ChangeVisualState()MeasureOverride(double, double)OnApplyTemplate()
Not finding the help you need?
Contact Support