Class SliderThumbStyle
Options to customize the slider thumbs.
Inheritance
Namespace: Syncfusion.Maui.Sliders
Assembly: Syncfusion.Maui.Sliders.dll
Syntax
public class SliderThumbStyle : Element, IThemeElement
Constructors
SliderThumbStyle()
Declaration
public SliderThumbStyle()
Fields
FillProperty
The backing store for the Fill field.
Declaration
public static readonly BindableProperty FillProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
OverlapStrokeProperty
The backing store for the OverlapStroke field.
Declaration
public static readonly BindableProperty OverlapStrokeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
RadiusProperty
The backing store for the Radius field.
Declaration
public static readonly BindableProperty RadiusProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
StrokeProperty
The backing store for the Stroke field.
Declaration
public static readonly BindableProperty StrokeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
StrokeThicknessProperty
The backing store for the StrokeThickness field.
Declaration
public static readonly BindableProperty StrokeThicknessProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
Properties
Fill
Gets or sets the brush for the thumbs in the SfSlider, SfRangeSlider, SfRangeSelector,
SfDateTimeSlider, SfDateTimeRangeSlider and SfDateTimeRangeSelector.
Declaration
public Brush Fill { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.Brush | The default brush is |
Examples
Snippet for SfSlider
<sliders:SfSlider>
<sliders:SfSlider.ThumbStyle>
<sliders:SliderThumbStyle Fill = "#F7C8DB" />
</sliders:SfSlider.ThumbStyle>
</sliders:SfSlider>
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider>
<sliders:SfDateTimeSlider.ThumbStyle>
<sliders:SliderThumbStyle Fill = "#F7C8DB" />
</sliders:SfDateTimeSlider.ThumbStyle>
</sliders:SfDateTimeSlider>
Snippet for SfRangeSlider
<sliders:SfRangeSlider>
<sliders:SfRangeSlider.ThumbStyle>
<sliders:SliderThumbStyle Fill = "#F7C8DB" />
</sliders:SfRangeSlider.ThumbStyle>
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider>
<sliders:SfDateTimeRangeSlider.ThumbStyle>
<sliders:SliderThumbStyle Fill = "#F7C8DB" />
</sliders:SfDateTimeRangeSlider.ThumbStyle>
</sliders:SfDateTimeRangeSlider>
Snippet for SfRangeSelector
<sliders:SfRangeSelector>
<sliders:SfRangeSelector.ThumbStyle>
<sliders:SliderThumbStyle Fill="#F7C8DB" />
</sliders:SfRangeSelector.ThumbStyle>
</sliders:SfRangeSelector>
Snippet for SfDateTimeRangeSelector
<sliders:SfDateTimeRangeSelector>
<sliders:SfDateTimeRangeSelector.ThumbStyle>
<sliders:SliderThumbStyle Fill="#F7C8DB" />
</sliders:SfDateTimeRangeSelector.ThumbStyle>
</sliders:SfDateTimeRangeSelector>
OverlapStroke
Gets or sets the brush for the thumbs stroke when they overlap each other.
Declaration
public Brush OverlapStroke { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.Brush | The default brush is |
Examples
Snippet for SfSlider
<sliders:SfSlider>
<sliders:SfSlider.ThumbStyle>
<sliders:SliderThumbStyle OverlapStroke = "#F7C8DB" />
</sliders:SfSlider.ThumbStyle>
</sliders:SfSlider>
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider>
<sliders:SfDateTimeSlider.ThumbStyle>
<sliders:SliderThumbStyle OverlapStroke = "#F7C8DB" />
</sliders:SfDateTimeSlider.ThumbStyle>
</sliders:SfDateTimeSlider>
Snippet for SfRangeSlider
<sliders:SfRangeSlider>
<sliders:SfRangeSlider.ThumbStyle>
<sliders:SliderThumbStyle OverlapStroke = "#F7C8DB" />
</sliders:SfRangeSlider.ThumbStyle>
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider>
<sliders:SfDateTimeRangeSlider.ThumbStyle>
<sliders:SliderThumbStyle OverlapStroke = "#F7C8DB" />
</sliders:SfDateTimeRangeSlider.ThumbStyle>
</sliders:SfDateTimeRangeSlider>
Snippet for SfRangeSelector
<sliders:SfRangeSelector>
<sliders:SfRangeSelector.ThumbStyle>
<sliders:SliderThumbStyle OverlapStroke="#F7C8DB" />
</sliders:SfRangeSelector.ThumbStyle>
</sliders:SfRangeSelector>
Snippet for SfDateTimeRangeSelector
<sliders:SfDateTimeRangeSelector>
<sliders:SfDateTimeRangeSelector.ThumbStyle>
<sliders:SliderThumbStyle OverlapStroke="#F7C8DB" />
</sliders:SfDateTimeRangeSelector.ThumbStyle>
</sliders:SfDateTimeRangeSelector>
Radius
Gets or sets the radius for the thumbs in the SfSlider, SfRangeSlider, SfRangeSelector,
SfDateTimeSlider, SfDateTimeRangeSlider and SfDateTimeRangeSelector.
Declaration
public double Radius { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default size is |
Examples
Snippet for SfSlider
<sliders:SfSlider>
<sliders:SfSlider.ThumbStyle>
<sliders:SliderThumbStyle Radius = "15" />
</sliders:SfSlider.ThumbStyle>
</sliders:SfSlider>
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider>
<sliders:SfDateTimeSlider.ThumbStyle>
<sliders:SliderThumbStyle Radius = "15" />
</sliders:SfDateTimeSlider.ThumbStyle>
</sliders:SfDateTimeSlider>
Snippet for SfRangeSlider
<sliders:SfRangeSlider>
<sliders:SfRangeSlider.ThumbStyle>
<sliders:SliderThumbStyle Radius = "15" />
</sliders:SfRangeSlider.ThumbStyle>
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider>
<sliders:SfDateTimeRangeSlider.ThumbStyle>
<sliders:SliderThumbStyle Radius = "15" />
</sliders:SfDateTimeRangeSlider.ThumbStyle>
</sliders:SfDateTimeRangeSlider>
Snippet for SfRangeSelector
<sliders:SfRangeSelector>
<sliders:SfRangeSelector.ThumbStyle>
<sliders:SliderThumbStyle Radius="15" />
</sliders:SfRangeSelector.ThumbStyle>
</sliders:SfRangeSelector>
Snippet for SfDateTimeRangeSelector
<sliders:SfDateTimeRangeSelector>
<sliders:SfDateTimeRangeSelector.ThumbStyle>
<sliders:SliderThumbStyle Radius="15" />
</sliders:SfDateTimeRangeSelector.ThumbStyle>
</sliders:SfDateTimeRangeSelector>
Stroke
Gets or sets the brush for the thumbs stroke in the SfSlider, SfRangeSlider, SfRangeSelector,
SfDateTimeSlider, SfDateTimeRangeSlider and SfDateTimeRangeSelector.
Declaration
public Brush Stroke { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.Brush | The default brush is |
Examples
Snippet for SfSlider
<sliders:SfSlider>
<sliders:SfSlider.ThumbStyle>
<sliders:SliderThumbStyle Stroke = "#F7C8DB"
StrokeThickness = "2" />
</sliders:SfSlider.ThumbStyle>
</sliders:SfSlider>
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider>
<sliders:SfDateTimeSlider.ThumbStyle>
<sliders:SliderThumbStyle Stroke = "#F7C8DB"
StrokeThickness = "2" />
</sliders:SfDateTimeSlider.ThumbStyle>
</sliders:SfDateTimeSlider>
Snippet for SfRangeSlider
<sliders:SfRangeSlider>
<sliders:SfRangeSlider.ThumbStyle>
<sliders:SliderThumbStyle Stroke = "#F7C8DB"
StrokeThickness = "2" />
</sliders:SfRangeSlider.ThumbStyle>
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider>
<sliders:SfDateTimeRangeSlider.ThumbStyle>
<sliders:SliderThumbStyle Stroke = "#F7C8DB"
StrokeThickness = "2" />
</sliders:SfDateTimeRangeSlider.ThumbStyle>
</sliders:SfDateTimeRangeSlider>
Snippet for SfRangeSelector
<sliders:SfRangeSelector>
<sliders:SfRangeSelector.ThumbStyle>
<sliders:SliderThumbStyle Stroke="#F7C8DB"
StrokeThickness="2" />
</sliders:SfRangeSelector.ThumbStyle>
</sliders:SfRangeSelector>
Snippet for SfDateTimeRangeSelector
<sliders:SfDateTimeRangeSelector>
<sliders:SfDateTimeRangeSelector.ThumbStyle>
<sliders:SliderThumbStyle Stroke="#F7C8DB"
StrokeThickness="2" />
</sliders:SfDateTimeRangeSelector.ThumbStyle>
</sliders:SfDateTimeRangeSelector>
StrokeThickness
Gets or sets the color for the thumbs in the SfSlider, SfRangeSlider, SfRangeSelector,
SfDateTimeSlider, SfDateTimeRangeSlider and SfDateTimeRangeSelector.
Declaration
public double StrokeThickness { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default size is |
Examples
Snippet for SfSlider
<sliders:SfSlider>
<sliders:SfSlider.ThumbStyle>
<sliders:SliderThumbStyle Stroke = "#F7C8DB"
StrokeThickness = "2" />
</sliders:SfSlider.ThumbStyle>
</sliders:SfSlider>
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider>
<sliders:SfDateTimeSlider.ThumbStyle>
<sliders:SliderThumbStyle Stroke = "#F7C8DB"
StrokeThickness = "2" />
</sliders:SfDateTimeSlider.ThumbStyle>
</sliders:SfDateTimeSlider>
Snippet for SfRangeSlider
<sliders:SfRangeSlider>
<sliders:SfRangeSlider.ThumbStyle>
<sliders:SliderThumbStyle Stroke = "#F7C8DB"
StrokeThickness = "2" />
</sliders:SfRangeSlider.ThumbStyle>
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider>
<sliders:SfDateTimeRangeSlider.ThumbStyle>
<sliders:SliderThumbStyle Stroke = "#F7C8DB"
StrokeThickness = "2" />
</sliders:SfDateTimeRangeSlider.ThumbStyle>
</sliders:SfDateTimeRangeSlider>
Snippet for SfRangeSelector
<sliders:SfRangeSelector>
<sliders:SfRangeSelector.ThumbStyle>
<sliders:SliderThumbStyle Stroke="#F7C8DB"
StrokeThickness="2" />
</sliders:SfRangeSelector.ThumbStyle>
</sliders:SfRangeSelector>
Snippet for SfDateTimeRangeSelector