Class RangeView<T>
RangeView<T> is a base class for SliderBase<T>, and RangeSliderBase<T>.
Implements
Inherited Members
Namespace: Syncfusion.Maui.Sliders
Assembly: Syncfusion.Maui.Sliders.dll
Syntax
public abstract class RangeView<T> : SfView, 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
Type Parameters
Name |
---|
T |
Constructors
RangeView()
Initializes a new instance of the SfSlider, SfDateTimeSlider, SfRangeSlider, SfDateTimeRangeSlider, SfRangeSelector, and SfDateTimeRangeSelector classes.
Declaration
public RangeView()
Fields
DeferredUpdateDelayProperty
The backing store for the DeferredUpdateDelay field.
Declaration
public static readonly BindableProperty DeferredUpdateDelayProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty |
DividerStyleProperty
The backing store for the DividerStyle field.
Declaration
public static readonly BindableProperty DividerStyleProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
DragCompletedCommandParameterProperty
The backing store for the DragCompletedCommandParameter field.
Declaration
public static readonly BindableProperty DragCompletedCommandParameterProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
DragCompletedCommandProperty
The backing store for the DragCompletedCommand field.
Declaration
public static readonly BindableProperty DragCompletedCommandProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
DragStartedCommandParameterProperty
The backing store for the DragStartedCommandParameter field.
Declaration
public static readonly BindableProperty DragStartedCommandParameterProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
DragStartedCommandProperty
The backing store for the DragStartedCommand field.
Declaration
public static readonly BindableProperty DragStartedCommandProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
EdgeLabelsPlacementProperty
Identifies the EdgeLabelsPlacement bindable property.
Declaration
public static readonly BindableProperty EdgeLabelsPlacementProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
EnableDeferredUpdateProperty
The backing store for the EnableDeferredUpdate field.
Declaration
public static readonly BindableProperty EnableDeferredUpdateProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty |
IntervalProperty
The backing store for the Interval field.
Declaration
public static readonly BindableProperty IntervalProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
IsInversedProperty
The backing store for the IsInversed field.
Declaration
public static readonly BindableProperty IsInversedProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
LabelsPlacementProperty
The backing store for the LabelsPlacement field.
Declaration
public static readonly BindableProperty LabelsPlacementProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
LabelStyleProperty
The backing store for the LabelStyle field.
Declaration
public static readonly BindableProperty LabelStyleProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
MajorTickStyleProperty
The backing store for the MajorTickStyle field.
Declaration
public static readonly BindableProperty MajorTickStyleProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
MaximumProperty
The backing store for the Maximum field.
Declaration
public static readonly BindableProperty MaximumProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
MinimumProperty
The backing store for the Minimum field.
Declaration
public static readonly BindableProperty MinimumProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
MinorTicksPerIntervalProperty
The backing store for the MinorTicksPerInterval field.
Declaration
public static readonly BindableProperty MinorTicksPerIntervalProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
MinorTickStyleProperty
The backing store for the MinorTickStyle field.
Declaration
public static readonly BindableProperty MinorTickStyleProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
ShowDividersProperty
The backing store for the ShowDividers field.
Declaration
public static readonly BindableProperty ShowDividersProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
ShowLabelsProperty
The backing store for the ShowLabels field.
Declaration
public static readonly BindableProperty ShowLabelsProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
ShowTicksProperty
The backing store for the ShowTicks field.
Declaration
public static readonly BindableProperty ShowTicksProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
ThumbOverlayStyleProperty
The backing store for the ThumbOverlayStyle field.
Declaration
public static readonly BindableProperty ThumbOverlayStyleProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
ThumbStyleProperty
The backing store for the ThumbStyle field.
Declaration
public static readonly BindableProperty ThumbStyleProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
TooltipProperty
The backing store for the Tooltip field.
Declaration
public static readonly BindableProperty TooltipProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
TrackExtentProperty
The backing store for the TrackExtent field.
Declaration
public static readonly BindableProperty TrackExtentProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
TrackStyleProperty
The backing store for the TrackStyle field.
Declaration
public static readonly BindableProperty TrackStyleProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
Properties
DeferredUpdateDelay
Gets or sets the DeferredUpdateDelay, expressed in milliseconds, at which to update the deferred values.
Declaration
public int DeferredUpdateDelay { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | Defaults to |
Examples
Snippet for SfSlider
Snippet for SfDateTimeSlider
Snippet for SfRangeSlider
Snippet for SfDateTimeRangeSlider
Snippet for SfRangeSelector
Snippet for SfDateTimeRangeSelector
DividerStyle
Gets or sets a value to customize the appearance of the divider shape.
Declaration
public SliderDividerStyle DividerStyle { get; set; }
Property Value
Type | Description |
---|---|
SliderDividerStyle | Defaults to |
Examples
Snippet for SfSlider
<sliders:SfSlider ShowDividers="True">
<sliders:SfSlider.DividerStyle>
<sliders:SliderDividerStyle ActiveRadius="5"
InactiveRadius="2.5" />
</sliders:SfSlider.TrackStyle>
</sliders:SfSlider>
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider ShowDividers="True">
<sliders:SfDateTimeSlider.DividerStyle>
<sliders:SliderDividerStyle ActiveRadius="5"
InactiveRadius="2.5" />
</sliders:SfDateTimeSlider.TrackStyle>
</sliders:SfDateTimeSlider>
Snippet for SfRangeSlider
<sliders:SfRangeSlider Interval="0.2"
ShowDividers="True">
<sliders:SfRangeSlider.DividerStyle>
<sliders:SliderDividerStyle ActiveFill="Red"
InactiveFill="Orange" />
</sliders:SfRangeSlider.DividerStyle>
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider Interval="0.2"
ShowDividers="True">
<sliders:SfDateTimeRangeSlider.DividerStyle>
<sliders:SliderDividerStyle ActiveFill="Red"
InactiveFill="Orange" />
</sliders:SfDateTimeRangeSlider.DividerStyle>
</sliders:SfDateTimeRangeSlider>
Snippet for SfRangeSelector
<sliders:SfRangeSelector Interval="0.2"
ShowDividers="True">
<sliders:SfRangeSelector.DividerStyle>
<sliders:SliderDividerStyle ActiveFill="Red"
InactiveFill="Orange" />
</sliders:SfRangeSelector.DividerStyle>
</sliders:SfRangeSelector>
Snippet for SfDateTimeRangeSelector
<sliders:SfDateTimeRangeSelector Interval="0.2"
ShowDividers="True">
<sliders:SfDateTimeRangeSelector.DividerStyle>
<sliders:SliderDividerStyle ActiveFill="Red"
InactiveFill="Orange" />
</sliders:SfDateTimeRangeSelector.DividerStyle>
</sliders:SfDateTimeRangeSelector>
DragCompletedCommand
Gets or sets the command that will be executed when we completed moving the thumb.
Declaration
public ICommand DragCompletedCommand { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
Examples
Snippet for SfSlider
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfSlider DragCompletedCommand = "{Binding DragCompletedCommand}" />
</ ContentPage.Content>
Snippet for SfDateTimeSlider
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfDateTimeSlider DragCompletedCommand = "{Binding DragCompletedCommand}" />
</ ContentPage.Content>
Snippet for SfRangeSlider
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfRangeSlider DragCompletedCommand = "{Binding DragCompletedCommand}" />
</ ContentPage.Content>
Snippet for SfDateTimeRangeSlider
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfDateTimeRangeSlider DragCompletedCommand = "{Binding DragCompletedCommand}" />
</ ContentPage.Content>
Snippet for SfRangeSelector
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfRangeSelector DragCompletedCommand = "{Binding DragCompletedCommand}" />
</ ContentPage.Content>
Snippet for SfDateTimeRangeSelector
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfDateTimeRangeSelector DragCompletedCommand = "{Binding DragCompletedCommand}" />
</ ContentPage.Content>
DragCompletedCommandParameter
Gets or sets the parameter for the DragCompletedCommandParameter.
Declaration
public object DragCompletedCommandParameter { get; set; }
Property Value
Type |
---|
System.Object |
Examples
Snippet for SfSlider
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfSlider DragCompletedCommand="{Binding DragCompletedCommand}"
DragCompletedCommandParameter="1" />
</ ContentPage.Content>
Snippet for SfDateTimeSlider
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfDateTimeSlider DragCompletedCommand="{Binding DragCompletedCommand}"
DragCompletedCommandParameter="1" />
</ ContentPage.Content>
Snippet for SfRangeSlider
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfRangeSlider DragCompletedCommand="{Binding DragCompletedCommand}"
DragCompletedCommandParameter="1" />
</ ContentPage.Content>
Snippet for SfDateTimeRangeSlider
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfDateTimeRangeSlider DragCompletedCommand="{Binding DragCompletedCommand}"
DragCompletedCommandParameter="1" />
</ ContentPage.Content>
Snippet for SfRangeSelector
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfRangeSelector DragCompletedCommand="{Binding DragCompletedCommand}"
DragCompletedCommandParameter="1" />
</ ContentPage.Content>
Snippet for SfDateTimeRangeSelector
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfDateTimeRangeSelector DragCompletedCommand="{Binding DragCompletedCommand}"
DragCompletedCommandParameter="1" />
</ ContentPage.Content>
DragStartedCommand
Gets or sets the command that will be executed when we start moving the thumb.
Declaration
public ICommand DragStartedCommand { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
Examples
Snippet for SfSlider
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfSlider DragStartedCommand = "{Binding DragStartedCommand}" />
</ ContentPage.Content>
Snippet for SfDateTimeSlider
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfDateTimeSlider DragStartedCommand = "{Binding DragStartedCommand}" />
</ ContentPage.Content>
Snippet for SfRangeSlider
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfRangeSlider DragStartedCommand = "{Binding DragStartedCommand}" />
</ ContentPage.Content>
Snippet for SfDateTimeRangeSlider
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfDateTimeRangeSlider DragStartedCommand = "{Binding DragStartedCommand}" />
</ ContentPage.Content>
Snippet for SfRangeSelector
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfRangeSelector DragStartedCommand = "{Binding DragStartedCommand}" />
</ ContentPage.Content>
Snippet for SfDateTimeRangeSelector
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfDateTimeRangeSelector DragStartedCommand = "{Binding DragStartedCommand}" />
</ ContentPage.Content>
DragStartedCommandParameter
Gets or sets the parameter for the DragStartedCommandParameter.
Declaration
public object DragStartedCommandParameter { get; set; }
Property Value
Type |
---|
System.Object |
Examples
Snippet for SfSlider
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfSlider DragStartedCommand="{Binding DragStartedCommand}"
DragStartedCommandParameter="1" />
</ ContentPage.Content>
Snippet for SfDateTimeSlider
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfDateTimeSlider DragStartedCommand="{Binding DragStartedCommand}"
DragStartedCommandParameter="1" />
</ ContentPage.Content>
Snippet for SfRangeSlider
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfRangeSlider DragStartedCommand="{Binding DragStartedCommand}"
DragStartedCommandParameter="1" />
</ ContentPage.Content>
Snippet for SfDateTimeRangeSlider
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfDateTimeRangeSlider DragStartedCommand="{Binding DragStartedCommand}"
DragStartedCommandParameter="1" />
</ ContentPage.Content>
Snippet for SfRangeSelector
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfRangeSelector DragStartedCommand="{Binding DragStartedCommand}"
DragStartedCommandParameter="1" />
</ ContentPage.Content>
Snippet for SfDateTimeRangeSelector
<ContentPage.BindingContext>
<local:ViewModel x:Name="viewModel" />
</ContentPage.BindingContext>
<ContentPage.Content>
<sliders:SfDateTimeRangeSelector DragStartedCommand="{Binding DragStartedCommand}"
DragStartedCommandParameter="1" />
</ ContentPage.Content>
EdgeLabelsPlacement
Gets or sets the first and last label either inside the track bounds or on the intervals.
If the TrackExtent
> 0 and EdgeLabelsPlacement
is
Inside
, the labels get placed inside the extended track edges.
Declaration
public SliderEdgeLabelsPlacement EdgeLabelsPlacement { get; set; }
Property Value
Type | Description |
---|---|
SliderEdgeLabelsPlacement | Defaults to |
Examples
Snippet for SfSlider
Snippet for SfDateTimeSlider
Snippet for SfRangeSlider
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider ShowLabels="True"
Interval="0.25"
EdgeLabelsPlacement="Inside" />
Snippet for SfRangeSelector
Snippet for SfDateTimeRangeSelector
<sliders:SfDateTimeRangeSelector ShowLabels="True"
Interval="0.25"
EdgeLabelsPlacement="Inside" />
EnableDeferredUpdate
Gets or sets a value indicating whether to defer a selection.
It invokes the ValueChanging event when the thumb is dragged and held for the duration specified in the DeferredUpdateDelay. However, the values are immediately updated in touch-up action. By default, the values will be updated as soon as the thumb is dragged.
Declaration
public bool EnableDeferredUpdate { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Defaults to |
Examples
Snippet for SfSlider
Snippet for SfDateTimeSlider
Snippet for SfRangeSlider
Snippet for SfDateTimeRangeSlider
Snippet for SfRangeSelector
Snippet for SfDateTimeRangeSelector
Interval
Gets or sets a value indicating the interval between the slider elements in the track.
For example, if Minimum is 0.0 and Maximum is 10.0 and Interval is 2.0, the slider will render the labels, major ticks, and dividers at 0.0, 2.0, 4.0 and so on.
Declaration
public double Interval { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Defaults to |
Examples
Snippet for SfSlider
Snippet for SfDateTimeSlider
Snippet for SfRangeSlider
Snippet for SfDateTimeRangeSlider
Snippet for SfRangeSelector
Snippet for SfDateTimeRangeSelector
IsInversed
Gets or sets a value indicating whether to inverse the slider.
Declaration
public bool IsInversed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Defaults to |
Examples
Snippet for SfSlider
Snippet for SfDateTimeSlider
Snippet for SfRangeSlider
Snippet for SfDateTimeRangeSlider
Snippet for SfRangeSelector
Snippet for SfDateTimeRangeSelector
LabelsPlacement
Gets or sets the value indicating whether to place the labels either between the major ticks or on the major ticks.
Declaration
public SliderLabelsPlacement LabelsPlacement { get; set; }
Property Value
Type | Description |
---|---|
SliderLabelsPlacement | Defaults to |
Examples
Snippet for SfSlider
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider ShowLabels="True"
Interval="0.25"
LabelsPlacement="BetweenTicks" />
Snippet for SfRangeSlider
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider ShowLabels="True"
Interval="0.25"
LabelsPlacement="BetweenTicks" />
Snippet for SfRangeSelector
<sliders:SfRangeSelector ShowLabels="True"
Interval="0.25"
LabelsPlacement="BetweenTicks" />
Snippet for SfDateTimeRangeSelector
<sliders:SfDateTimeRangeSelector ShowLabels="True"
Interval="0.25"
LabelsPlacement="BetweenTicks" />
LabelStyle
Gets or sets a value to customize the appearance of the labels.
Declaration
public SliderLabelStyle LabelStyle { get; set; }
Property Value
Type | Description |
---|---|
SliderLabelStyle | Defaults to |
Examples
Snippet for SfSlider
<sliders:SfSlider ShowLabels="True">
<sliders:SfRangeSlider.LabelStyle>
<sliders:SliderLabelStyle ActiveFontSize="12"
InactiveFontSize="10" />
</sliders:SfRangeSlider.LabelStyle>
</sliders:SfSlider>
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider ShowLabels="True">
<sliders:SfDateTimeSlider.LabelStyle>
<sliders:SliderLabelStyle ActiveFontSize="12"
InactiveFontSize="10" />
</sliders:SfDateTimeSlider.LabelStyle>
</sliders:SfDateTimeSlider>
Snippet for SfRangeSlider
<sliders:SfRangeSlider ShowLabels="True">
<sliders:SfSlider.LabelStyle>
<sliders:SliderLabelStyle ActiveFontSize="12"
InactiveFontSize="10" />
</sliders:SfSlider.LabelStyle>
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider ShowLabels="True">
<sliders:SfDateTimeRangeSlider.LabelStyle>
<sliders:SliderLabelStyle ActiveFontSize="12"
InactiveFontSize="10" />
</sliders:SfDateTimeRangeSlider.LabelStyle>
</sliders:SfDateTimeRangeSlider>
Snippet for SfRangeSelector
<sliders:SfRangeSelector ShowLabels="True">
<sliders:SfRangeSelector.LabelStyle>
<sliders:SliderLabelStyle ActiveFontSize="12"
InactiveFontSize="10" />
</sliders:SfRangeSelector.LabelStyle>
</sliders:SfRangeSelector>
Snippet for SfDateTimeRangeSelector
<sliders:SfDateTimeRangeSelector ShowLabels="True">
<sliders:SfDateTimeRangeSelector.LabelStyle>
<sliders:SliderLabelStyle ActiveFontSize="12"
InactiveFontSize="10" />
</sliders:SfDateTimeRangeSelector.LabelStyle>
</sliders:SfDateTimeRangeSelector>
MajorTickStyle
Gets or sets a value to customize the appearance of the major tick shape.
Declaration
public SliderTickStyle MajorTickStyle { get; set; }
Property Value
Type | Description |
---|---|
SliderTickStyle | Defaults to |
Examples
Snippet for SfSlider
<sliders:SfSlider ShowTicks="True">
<sliders:SfSlider.MajorTickStyle>
<sliders:SliderTickStyle ActiveFill="Red"
InactiveFill="Orange" />
</sliders:SfSlider.MajorTickStyle>
</sliders:SfSlider>
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider ShowTicks="True">
<sliders:SfDateTimeSlider.MajorTickStyle>
<sliders:SliderTickStyle ActiveFill="Red"
InactiveFill="Orange" />
</sliders:SfDateTimeSlider.MajorTickStyle>
</sliders:SfDateTimeSlider>
Snippet for SfRangeSlider
<sliders:SfRangeSlider ShowTicks="True">
<sliders:SfRangeSlider.MajorTickStyle>
<sliders:SliderTickStyle ActiveFill="Red"
InactiveFill="Orange" />
</sliders:SfRangeSlider.MajorTickStyle>
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider ShowTicks="True">
<sliders:SfDateTimeRangeSlider.MajorTickStyle>
<sliders:SliderTickStyle ActiveFill="Red"
InactiveFill="Orange" />
</sliders:SfDateTimeRangeSlider.MajorTickStyle>
</sliders:SfDateTimeRangeSlider>
Snippet for SfRangeSelector
<sliders:SfRangeSelector ShowTicks="True">
<sliders:SfRangeSelector.MajorTickStyle>
<sliders:SliderTickStyle ActiveFill="Red"
InactiveFill="Orange" />
</sliders:SfRangeSelector.MajorTickStyle>
</sliders:SfRangeSelector>
Snippet for SfDateTimeRangeSelector
<sliders:SfDateTimeRangeSelector ShowTicks="True">
<sliders:SfDateTimeRangeSelector.MajorTickStyle>
<sliders:SliderTickStyle ActiveFill="Red"
InactiveFill="Orange" />
</sliders:SfDateTimeRangeSelector.MajorTickStyle>
</sliders:SfDateTimeRangeSelector>
Maximum
Gets or sets the maximum value of the track. The track ends at this value.
Declaration
public T Maximum { get; set; }
Property Value
Type | Description |
---|---|
T | Defaults to |
Examples
Snippet for SfSlider
Snippet for SfRangeSlider
Snippet for SfRangeSelector
Snippet for SfDateTimeSlider
Snippet for SfDateTimeRangeSlider
Snippet for SfDateTimeRangeSelector
Minimum
Gets or sets the minimum value of the track. The track starts from this value.
Declaration
public T Minimum { get; set; }
Property Value
Type | Description |
---|---|
T | Defaults to |
Examples
Snippet for SfSlider
Snippet for SfRangeSlider
Snippet for SfRangeSelector
Snippet for SfDateTimeSlider
Snippet for SfDateTimeRangeSlider
Snippet for SfDateTimeRangeSelector
MinorTicksPerInterval
Gets or sets the value indicating the number of smaller ticks between two major ticks.
For example, if Minimum is 0.0 and Maximum is 10.0 and Interval is 2.0, the slider will render the major ticks at 0.0, 2.0, 4.0 and so on. If MinorTicksPerInterval is 1, then minor ticks will be rendered on 1.0, 3.0 and so on.
Declaration
public int MinorTicksPerInterval { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | Defaults to |
Examples
Snippet for SfSlider
Snippet for SfDateTimeSlider
Snippet for SfRangeSlider
Snippet for SfDateTimeRangeSlider
Snippet for SfRangeSelector
Snippet for SfDateTimeRangeSelector
MinorTickStyle
Gets or sets a value to customize the appearance of the minor tick shape.
Declaration
public SliderTickStyle MinorTickStyle { get; set; }
Property Value
Type | Description |
---|---|
SliderTickStyle | Defaults to |
Examples
Snippet for SfSlider
<sliders:SfSlider ShowTicks="True"
MinorTicksPerInterval="1">
<sliders:SfSlider.MinorTickStyle>
<sliders:SliderTickStyle ActiveFill="Red"
InactiveFill="Orange" />
</sliders:SfSlider.MinorTickStyle>
</sliders:SfSlider>
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider ShowTicks="True"
MinorTicksPerInterval="1">
<sliders:SfDateTimeSlider.MinorTickStyle>
<sliders:SliderTickStyle ActiveFill="Red"
InactiveFill="Orange" />
</sliders:SfDateTimeSlider.MinorTickStyle>
</sliders:SfDateTimeSlider>
Snippet for SfRangeSlider
<sliders:SfRangeSlider ShowTicks="True"
MinorTicksPerInterval="1">
<sliders:SfRangeSlider.MinorTickStyle>
<sliders:SliderTickStyle ActiveFill="Red"
InactiveFill="Orange" />
</sliders:SfRangeSlider.MinorTickStyle>
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider ShowTicks="True"
MinorTicksPerInterval="1">
<sliders:SfDateTimeRangeSlider.MinorTickStyle>
<sliders:SliderTickStyle ActiveFill="Red"
InactiveFill="Orange" />
</sliders:SfDateTimeRangeSlider.MinorTickStyle>
</sliders:SfDateTimeRangeSlider>
Snippet for SfRangeSelector
<sliders:SfRangeSelector ShowTicks="True"
MinorTicksPerInterval="1">
<sliders:SfRangeSelector.MinorTickStyle>
<sliders:SliderTickStyle ActiveFill="Red"
InactiveFill="Orange" />
</sliders:SfRangeSelector.MinorTickStyle>
</sliders:SfRangeSelector>
Snippet for SfDateTimeRangeSelector
<sliders:SfDateTimeRangeSelector ShowTicks="True"
MinorTicksPerInterval="1">
<sliders:SfDateTimeRangeSelector.MinorTickStyle>
<sliders:SliderTickStyle ActiveFill="Red"
InactiveFill="Orange" />
</sliders:SfDateTimeRangeSelector.MinorTickStyle>
</sliders:SfDateTimeRangeSelector>
ShowDividers
Gets or sets a value indicating whether to show or hide the dividers.
If we enable this property without specifying the Interval, the dividers will be rendered at track start and end.
Declaration
public bool ShowDividers { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Defaults to |
Examples
Snippet for SfSlider
Snippet for SfDateTimeSlider
Snippet for SfRangeSlider
Snippet for SfDateTimeRangeSlider
Snippet for SfRangeSelector
Snippet for SfDateTimeRangeSelector
ShowLabels
Gets or sets a value indicating whether to show or hide the labels.
If we enable this property without specifying the Interval, the labels will be rendered at track start and end.
Declaration
public bool ShowLabels { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Defaults to |
Examples
Snippet for SfSlider
Snippet for SfDateTimeSlider
Snippet for SfRangeSlider
Snippet for SfDateTimeRangeSlider
Snippet for SfRangeSelector
Snippet for SfDateTimeRangeSelector
ShowTicks
Gets or sets a value indicating whether to show or hide the ticks.
If we enable this property without specifying the Interval, the ticks will be rendered at track start and end.
Declaration
public bool ShowTicks { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Defaults to |
Examples
Snippet for SfSlider
Snippet for SfDateTimeSlider
Snippet for SfRangeSlider
Snippet for SfDateTimeRangeSlider
Snippet for SfRangeSelector
Snippet for SfDateTimeRangeSelector
ThumbOverlayStyle
Gets or sets a value to customize the appearance of the thumb overlay shape.
Declaration
public SliderThumbOverlayStyle ThumbOverlayStyle { get; set; }
Property Value
Type | Description |
---|---|
SliderThumbOverlayStyle | Defaults to |
Examples
Snippet for SfSlider
<sliders:SfSlider>
<sliders:SfSlider.ThumbOverlayStyle>
<sliders:SliderThumbOverlayStyle Radius="20" />
</sliders:SfSlider.ThumbOverlayStyle>
</sliders:SfSlider>
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider>
<sliders:SfDateTimeSlider.ThumbOverlayStyle>
<sliders:SliderThumbOverlayStyle Radius="20" />
</sliders:SfDateTimeSlider.ThumbOverlayStyle>
</sliders:SfDateTimeSlider>
Snippet for SfRangeSlider
<sliders:SfRangeSlider>
<sliders:SfRangeSlider.ThumbOverlayStyle>
<sliders:SliderThumbOverlayStyle Radius="20" />
</sliders:SfRangeSlider.ThumbOverlayStyle>
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider>
<sliders:SfDateTimeRangeSlider.ThumbOverlayStyle>
<sliders:SliderThumbOverlayStyle Radius="20" />
</sliders:SfDateTimeRangeSlider.ThumbOverlayStyle>
</sliders:SfDateTimeRangeSlider>
Snippet for SfRangeSelector
<sliders:SfRangeSelector>
<sliders:SfRangeSelector.ThumbOverlayStyle>
<sliders:SliderThumbOverlayStyle Radius="20" />
</sliders:SfRangeSelector.ThumbOverlayStyle>
</sliders:SfRangeSelector>
Snippet for SfDateTimeRangeSelector
<sliders:SfDateTimeRangeSelector>
<sliders:SfDateTimeRangeSelector.ThumbOverlayStyle>
<sliders:SliderThumbOverlayStyle Radius="20" />
</sliders:SfDateTimeRangeSelector.ThumbOverlayStyle>
</sliders:SfDateTimeRangeSelector>
ThumbStyle
Gets or sets a value to customize the appearance of the thumb shape.
Declaration
public SliderThumbStyle ThumbStyle { get; set; }
Property Value
Type | Description |
---|---|
SliderThumbStyle | Defaults to |
Examples
Snippet for SfSlider
<sliders:SfSlider>
<sliders:SfSlider.ThumbStyle>
<sliders:SliderThumbStyle Radius="15"
StrokeThickness="2" />
</sliders:SfSlider.ThumbStyle>
</sliders:SfSlider>
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider>
<sliders:SfDateTimeSlider.ThumbStyle>
<sliders:SliderThumbStyle Radius="15"
StrokeThickness="2" />
</sliders:SfDateTimeSlider.ThumbStyle>
</sliders:SfDateTimeSlider>
Snippet for SfRangeSlider
<sliders:SfRangeSlider>
<sliders:SfRangeSlider.ThumbStyle>
<sliders:SliderThumbStyle Radius="15"
StrokeThickness="2" />
</sliders:SfRangeSlider.ThumbStyle>
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider>
<sliders:SfDateTimeRangeSlider.ThumbStyle>
<sliders:SliderThumbStyle Radius="15"
StrokeThickness="2" />
</sliders:SfDateTimeRangeSlider.ThumbStyle>
</sliders:SfDateTimeRangeSlider>
Snippet for SfRangeSelector
<sliders:SfRangeSelector>
<sliders:SfRangeSelector.ThumbStyle>
<sliders:SliderThumbStyle Radius="15"
StrokeThickness="2" />
</sliders:SfRangeSelector.ThumbStyle>
</sliders:SfRangeSelector>
Snippet for SfDateTimeRangeSelector
<sliders:SfDateTimeRangeSelector>
<sliders:SfDateTimeRangeSelector.ThumbStyle>
<sliders:SliderThumbStyle Radius="15"
StrokeThickness="2" />
</sliders:SfDateTimeRangeSelector.ThumbStyle>
</sliders:SfDateTimeRangeSelector>
Tooltip
Gets or sets a value to customize the appearance of the tooltip shape.
Declaration
public SliderTooltip Tooltip { get; set; }
Property Value
Type | Description |
---|---|
SliderTooltip | Defaults to |
Examples
Snippet for SfSlider
<sliders:SfSlider>
<sliders:SfSlider.Tooltip>
<sliders:SliderTooltip />
</sliders:SfSlider.Tooltip>
</sliders:SfSlider>
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider>
<sliders:SfDateTimeSlider.Tooltip>
<sliders:SliderTooltip />
</sliders:SfDateTimeSlider.Tooltip>
</sliders:SfDateTimeSlider>
Snippet for SfRangeSlider
<sliders:SfRangeSlider>
<sliders:SfRangeSlider.Tooltip>
<sliders:SliderTooltip />
</sliders:SfRangeSlider.Tooltip>
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider>
<sliders:SfDateTimeRangeSlider.Tooltip>
<sliders:SliderTooltip />
</sliders:SfDateTimeRangeSlider.Tooltip>
</sliders:SfDateTimeRangeSlider>
Snippet for SfRangeSelector
<sliders:SfRangeSelector>
<sliders:SfRangeSlider.Tooltip>
<sliders:SliderTooltip />
</sliders:SfRangeSelector.Tooltip>
</sliders:SfRangeSelector>
Snippet for SfDateTimeRangeSelector
<sliders:SfDateTimeRangeSelector>
<sliders:SfDateTimeRangeSelector.Tooltip>
<sliders:SliderTooltip />
</sliders:SfDateTimeRangeSelector.Tooltip>
</sliders:SfDateTimeRangeSelector>
TrackExtent
Gets or sets the value in pixel for extending track edges.
Declaration
public double TrackExtent { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Defaults to |
Examples
Snippet for SfSlider
Snippet for SfDateTimeSlider
Snippet for SfRangeSlider
Snippet for SfDateTimeRangeSlider
Snippet for SfRangeSelector
Snippet for SfDateTimeRangeSelector
TrackStyle
Gets or sets a value to customize the appearance of the track shape.
Declaration
public SliderTrackStyle TrackStyle { get; set; }
Property Value
Type | Description |
---|---|
SliderTrackStyle | Defaults to |
Examples
Snippet for SfSlider
<sliders:SfSlider>
<sliders:SfSlider.TrackStyle>
<sliders:SliderTrackStyle ActiveSize = "10"
InactiveSize="5" />
</sliders:SfSlider.TrackStyle>
</sliders:SfSlider>
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider>
<sliders:SfDateTimeSlider.TrackStyle>
<sliders:SliderTrackStyle ActiveSize = "10"
InactiveSize="5" />
</sliders:SfDateTimeSlider.TrackStyle>
</sliders:SfDateTimeSlider>
Snippet for SfRangeSlider
<sliders:SfRangeSlider>
<sliders:SfRangeSlider.TrackStyle>
<sliders:SliderTrackStyle ActiveFill="Red"
InactiveFill="Orange">
</sliders:SfRangeSlider.TrackStyle>
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider>
<sliders:SfDateTimeRangeSlider.TrackStyle>
<sliders:SliderTrackStyle ActiveFill="Red"
InactiveFill="Orange">
</sliders:SfDateTimeRangeSlider.TrackStyle>
</sliders:SfDateTimeRangeSlider>
Snippet for SfRangeSelector
<sliders:SfRangeSelector>
<sliders:SfRangeSelector.TrackStyle>
<sliders:SliderTrackStyle ActiveFill="Red"
InactiveFill="Orange" />
</sliders:SfRangeSelector.TrackStyle>
</sliders:SfRangeSelector>
Snippet for SfDateTimeRangeSelector
<sliders:SfDateTimeRangeSelector>
<sliders:SfDateTimeRangeSelector.TrackStyle>
<sliders:SliderTrackStyle ActiveFill="Red"
InactiveFill="Orange" />
</sliders:SfDateTimeRangeSelector.TrackStyle>
</sliders:SfDateTimeRangeSelector>
Methods
ArrangeContent(Rect)
Declaration
protected override Size ArrangeContent(Rect bounds)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Maui.Graphics.Rect | bounds |
Returns
Type |
---|
Microsoft.Maui.Graphics.Size |
Overrides
ChangeVisualState()
Declaration
protected override void ChangeVisualState()
MeasureContent(Double, Double)
Declaration
protected override Size MeasureContent(double widthConstraint, double heightConstraint)
Parameters
Type | Name | Description |
---|---|---|
System.Double | widthConstraint | |
System.Double | heightConstraint |
Returns
Type |
---|
Microsoft.Maui.Graphics.Size |
Overrides
OnBindingContextChanged()
Declaration
protected override void OnBindingContextChanged()
Overrides
OnDraw(ICanvas, RectF)
Declaration
protected override void OnDraw(ICanvas canvas, RectF bounds)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Maui.Graphics.ICanvas | canvas | |
Microsoft.Maui.Graphics.RectF | bounds |
Overrides
OnHandlerChanged()
Declaration
protected override void OnHandlerChanged()
Overrides
OnPropertyChanged(String)
Declaration
protected override void OnPropertyChanged(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName |
Events
LabelCreated
Represents the LabelCreated event, which occurs when a slider label is created. It is used to format or change the label text.
Declaration
public event EventHandler<SliderLabelCreatedEventArgs> LabelCreated
Event Type
Type | Description |
---|---|
System.EventHandler<SliderLabelCreatedEventArgs> | Defaults to null. |
Examples
Snippet for SfSlider
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider ShowLabels = "True"
LabelCreated="OnLabelCreated">
</sliders:SfDateTimeSlider>
Snippet for SfRangeSlider
<sliders:SfRangeSlider ShowLabels = "True"
LabelCreated="OnLabelCreated">
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider ShowLabels = "True"
LabelCreated="OnLabelCreated">
</sliders:SfDateTimeRangeSlider>
Snippet for SfRangeSelector
<sliders:SfRangeSelector ShowLabels = "True"
LabelCreated="OnLabelCreated">
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSelector
<sliders:SfDateTimeRangeSelector ShowLabels = "True"
LabelCreated="OnLabelCreated">
</sliders:SfDateTimeRangeSelector>
ValueChangeEnd
Represents the ValueChangeEnd event, which occurs when the user completed selecting a new value by tap/mouse up in the thumb.
Declaration
public event EventHandler<EventArgs> ValueChangeEnd
Event Type
Type | Description |
---|---|
System.EventHandler<System.EventArgs> | Defaults to null. |
Examples
Snippet for SfSlider
Snippet for SfDateTimeSlider
Snippet for SfRangeSlider
Snippet for SfDateTimeRangeSlider
Snippet for SfRangeSelector
Snippet for SfDateTimeRangeSelector
ValueChangeStart
Represents the ValueChangeStart event, which occurs when the user is selecting a new value by tap/mouse down in the thumb.
Declaration
public event EventHandler<EventArgs> ValueChangeStart
Event Type
Type | Description |
---|---|
System.EventHandler<System.EventArgs> | Defaults to null. |
Examples
Snippet for SfSlider
Snippet for SfDateTimeSlider
Snippet for SfRangeSlider
Snippet for SfDateTimeRangeSlider
Snippet for SfRangeSelector
Snippet for SfDateTimeRangeSelector