Class SliderTrackStyle
Options to customize the slider track.
Inheritance
Namespace: Syncfusion.Maui.Sliders
Assembly: Syncfusion.Maui.Sliders.dll
Syntax
public class SliderTrackStyle : Element, IThemeElement
Constructors
SliderTrackStyle()
Initializes a new instance of the SliderTrackStyle class.
Declaration
public SliderTrackStyle()
Fields
ActiveFillProperty
The backing store for the ActiveFill field.
Declaration
public static readonly BindableProperty ActiveFillProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
ActiveSizeProperty
The backing store for the ActiveSize field.
Declaration
public static readonly BindableProperty ActiveSizeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
InactiveFillProperty
The backing store for the InactiveFill field.
Declaration
public static readonly BindableProperty InactiveFillProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
InactiveSizeProperty
The backing store for the InactiveSize field.
Declaration
public static readonly BindableProperty InactiveSizeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | Microsoft.Maui.Controls.BindableProperty. |
Properties
ActiveFill
Gets or sets the brush for the active track in the SfSlider, SfRangeSlider, SfRangeSelector,
SfDateTimeSlider, SfDateTimeRangeSlider and SfDateTimeRangeSelector.
Declaration
public Brush ActiveFill { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.Brush | The default brush is |
Examples
Snippet for SfSlider
<sliders:SfSlider>
<sliders:SfSlider.TrackStyle>
<sliders:SliderTrackStyle ActiveFill = "Red" />
</sliders:SfSlider.TrackStyle>
</sliders:SfSlider>
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider>
<sliders:SfDateTimeSlider.TrackStyle>
<sliders:SliderTrackStyle ActiveFill = "Red" />
</sliders:SfDateTimeSlider.TrackStyle>
</sliders:SfDateTimeSlider>
Snippet for SfRangeSlider
<sliders:SfRangeSlider>
<sliders:SfRangeSlider.TrackStyle>
<sliders:SliderTrackStyle ActiveFill = "Red" />
</sliders:SfRangeSlider.TrackStyle>
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider>
<sliders:SfDateTimeRangeSlider.TrackStyle>
<sliders:SliderTrackStyle ActiveFill = "Red" />
</sliders:SfDateTimeRangeSlider.TrackStyle>
</sliders:SfDateTimeRangeSlider>
Snippet for SfRangeSelector
<sliders:SfRangeSelector>
<sliders:SfRangeSelector.TrackStyle>
<sliders:SliderTrackStyle ActiveFill="Red" />
</sliders:SfRangeSelector.TrackStyle>
</sliders:SfRangeSelector>
Snippet for SfDateTimeRangeSelector
<sliders:SfDateTimeRangeSelector>
<sliders:SfDateTimeRangeSelector.TrackStyle>
<sliders:SliderTrackStyle ActiveFill="Red" />
</sliders:SfDateTimeRangeSelector.TrackStyle>
</sliders:SfDateTimeRangeSelector>
ActiveSize
Gets or sets the size for the active track in the SfSlider, SfRangeSlider, SfRangeSelector,
SfDateTimeSlider, SfDateTimeRangeSlider and SfDateTimeRangeSelector.
When Orientation is horizontal, it will be considered as height of the track and when Orientation is vertical,
it will be considered as width of the track.
Declaration
public double ActiveSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default size is |
Examples
Snippet for SfSlider
<sliders:SfSlider>
<sliders:SfSlider.TrackStyle>
<sliders:SliderTrackStyle ActiveSize = "10" />
</sliders:SfSlider.TrackStyle>
</sliders:SfSlider>
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider>
<sliders:SfDateTimeSlider.TrackStyle>
<sliders:SliderTrackStyle ActiveSize = "10" />
</sliders:SfDateTimeSlider.TrackStyle>
</sliders:SfDateTimeSlider>
Snippet for SfRangeSlider
<sliders:SfRangeSlider>
<sliders:SfRangeSlider.TrackStyle>
<sliders:SliderTrackStyle ActiveSize = "10" />
</sliders:SfRangeSlider.TrackStyle>
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider>
<sliders:SfDateTimeRangeSlider.TrackStyle>
<sliders:SliderTrackStyle ActiveSize = "10" />
</sliders:SfDateTimeRangeSlider.TrackStyle>
</sliders:SfDateTimeRangeSlider>
Snippet for SfRangeSelector
<sliders:SfRangeSelector>
<sliders:SfRangeSelector.TrackStyle>
<sliders:SliderTrackStyle ActiveSize="10" />
</sliders:SfRangeSelector.TrackStyle>
</sliders:SfRangeSelector>
Snippet for SfDateTimeRangeSelector
<sliders:SfDateTimeRangeSelector>
<sliders:SfDateTimeRangeSelector.TrackStyle>
<sliders:SliderTrackStyle ActiveSize="10" />
</sliders:SfDateTimeRangeSelector.TrackStyle>
</sliders:SfDateTimeRangeSelector>
InactiveFill
Gets or sets the brush for the inactive track in the SfSlider, SfRangeSlider, SfRangeSelector,
SfDateTimeSlider, SfDateTimeRangeSlider and SfDateTimeRangeSelector.
Declaration
public Brush InactiveFill { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.Controls.Brush | The default brush is |
Examples
Snippet for SfSlider
<sliders:SfSlider>
<sliders:SfSlider.TrackStyle>
<sliders:SliderTrackStyle InactiveFill = "Red" />
</sliders:SfSlider.TrackStyle>
</sliders:SfSlider>
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider>
<sliders:SfDateTimeSlider.TrackStyle>
<sliders:SliderTrackStyle InactiveFill = "Red" />
</sliders:SfDateTimeSlider.TrackStyle>
</sliders:SfDateTimeSlider>
Snippet for SfRangeSlider
<sliders:SfRangeSlider>
<sliders:SfRangeSlider.TrackStyle>
<sliders:SliderTrackStyle InactiveFill = "Red" />
</sliders:SfRangeSlider.TrackStyle>
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider>
<sliders:SfDateTimeRangeSlider.TrackStyle>
<sliders:SliderTrackStyle InactiveFill = "Red" />
</sliders:SfDateTimeRangeSlider.TrackStyle>
</sliders:SfDateTimeRangeSlider>
Snippet for SfRangeSelector
<sliders:SfRangeSelector>
<sliders:SfRangeSelector.TrackStyle>
<sliders:SliderTrackStyle InactiveFill="Red" />
</sliders:SfRangeSelector.TrackStyle>
</sliders:SfRangeSelector>
Snippet for SfDateTimeRangeSelector
<sliders:SfDateTimeRangeSelector>
<sliders:SfDateTimeRangeSelector.TrackStyle>
<sliders:SliderTrackStyle InactiveFill="Red" />
</sliders:SfDateTimeRangeSelector.TrackStyle>
</sliders:SfDateTimeRangeSelector>
InactiveSize
Gets or sets the size for the inactive track in the SfSlider, SfRangeSlider, SfRangeSelector,
SfDateTimeSlider, SfDateTimeRangeSlider and SfDateTimeRangeSelector.
When Orientation is horizontal, it will be considered as height of the track and when Orientation is vertical,
it will be considered as width of the track.
Declaration
public double InactiveSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default size is |
Examples
Snippet for SfSlider
<sliders:SfSlider>
<sliders:SfSlider.TrackStyle>
<sliders:SliderTrackStyle InactiveSize = "10" />
</sliders:SfSlider.TrackStyle>
</sliders:SfSlider>
Snippet for SfDateTimeSlider
<sliders:SfDateTimeSlider>
<sliders:SfDateTimeSlider.TrackStyle>
<sliders:SliderTrackStyle InactiveSize = "10" />
</sliders:SfDateTimeSlider.TrackStyle>
</sliders:SfDateTimeSlider>
Snippet for SfRangeSlider
<sliders:SfRangeSlider>
<sliders:SfRangeSlider.TrackStyle>
<sliders:SliderTrackStyle InactiveSize = "10" />
</sliders:SfRangeSlider.TrackStyle>
</sliders:SfRangeSlider>
Snippet for SfDateTimeRangeSlider
<sliders:SfDateTimeRangeSlider>
<sliders:SfDateTimeRangeSlider.TrackStyle>
<sliders:SliderTrackStyle InactiveSize = "10" />
</sliders:SfDateTimeRangeSlider.TrackStyle>
</sliders:SfDateTimeRangeSlider>
Snippet for SfRangeSelector
<sliders:SfRangeSelector>
<sliders:SfRangeSelector.TrackStyle>
<sliders:SliderTrackStyle InactiveSize="10" />
</sliders:SfRangeSelector.TrackStyle>
</sliders:SfRangeSelector>
Snippet for SfDateTimeRangeSelector