Class SwitchSettings
Represents the switch settings class
Inheritance
Namespace: Syncfusion.Maui.Buttons
Assembly: Syncfusion.Maui.Buttons.dll
Syntax
public class SwitchSettings : Element
Examples
The below example shows how to initialize the switch settings.
Constructors
SwitchSettings()
Initializes a new instance of the SwitchSettings class.
Declaration
public SwitchSettings()
Fields
CustomPathProperty
Identifies the CustomPath bindable property.This property can be used to give the customize path to draw the rating shape.
Declaration
public static readonly BindableProperty CustomPathProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the CustomPath bindable property. |
IconColorProperty
Identifies IconColor bindable property.
Declaration
public static readonly BindableProperty IconColorProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the IconColor bindable property. |
ThumbBackgroundProperty
Identifies ThumbBackground bindable property.
Declaration
public static readonly BindableProperty ThumbBackgroundProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the ThumbBackground bindable property. |
ThumbCornerRadiusProperty
Identifies ThumbCornerRadius bindable property.
Declaration
public static readonly BindableProperty ThumbCornerRadiusProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the ThumbCornerRadius bindable property. |
ThumbHeightRequestProperty
Identifies ThumbHeightRequest bindable property.
Declaration
public static readonly BindableProperty ThumbHeightRequestProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the ThumbHeightRequest bindable property. |
ThumbStrokeProperty
Identifies ThumbStroke bindable property.
Declaration
public static readonly BindableProperty ThumbStrokeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the ThumbStroke bindable property. |
ThumbStrokeThicknessProperty
Identifies ThumbStrokeThickness bindable property.
Declaration
public static readonly BindableProperty ThumbStrokeThicknessProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the ThumbStrokeThickness bindable property. |
ThumbWidthRequestProperty
Identifies ThumbWidthRequest bindable property.
Declaration
public static readonly BindableProperty ThumbWidthRequestProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the ThumbWidthRequest bindable property. |
TrackBackgroundProperty
Identifies TrackBackground bindable property.
Declaration
public static readonly BindableProperty TrackBackgroundProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the TrackBackground bindable property. |
TrackCornerRadiusProperty
Identifies TrackCornerRadius bindable property.
Declaration
public static readonly BindableProperty TrackCornerRadiusProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the TrackCornerRadius bindable property. |
TrackHeightRequestProperty
Identifies TrackHeightRequest bindable property.
Declaration
public static readonly BindableProperty TrackHeightRequestProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the TrackHeightRequest bindable property. |
TrackStrokeProperty
Identifies TrackStroke bindable property.
Declaration
public static readonly BindableProperty TrackStrokeProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the TrackStroke bindable property. |
TrackStrokeThicknessProperty
Identifies TrackStrokeThickness bindable property.
Declaration
public static readonly BindableProperty TrackStrokeThicknessProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the TrackStrokeThickness bindable property. |
TrackWidthRequestProperty
Identifies TrackWidthRequest bindable property.
Declaration
public static readonly BindableProperty TrackWidthRequestProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for the TrackWidthRequest bindable property. |
Properties
CustomPath
Gets or sets a value to customize the path of thumb's icon.
Declaration
public string CustomPath { get; set; }
Property Value
Type |
---|
System.String |
Examples
The below example shows how to set the path of thumb's icon.
<syncfusion:SwitchSettings CustomPath= "M14.2051 0.744141L15.207 1.74609L5.69727 11.2559L0.792969 6.35156L1.79492 5.34961L5.69727 9.25195L14.2051 0.744141Z" />
IconColor
Gets or set the border color of the thumb's icon.
Declaration
public Color IconColor { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Graphics.Color |
Examples
The below example shows how to set the border color of the thumb's icon.
ThumbBackground
Gets or set the background color of the thumb.
Declaration
public Brush ThumbBackground { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.Brush |
Examples
The below example shows how to set the background color of the thumb.
ThumbCornerRadius
Gets or sets a value to customize the corner radius of the thumb.
Declaration
public CornerRadius ThumbCornerRadius { get; set; }
Property Value
Type |
---|
Microsoft.Maui.CornerRadius |
Examples
The below example shows how to set the corner radius of the thumb.
ThumbHeightRequest
Gets or sets a value to customize the height of the thumb.
Declaration
public double ThumbHeightRequest { get; set; }
Property Value
Type |
---|
System.Double |
Examples
The below example shows how to set the height of the thumb.
ThumbStroke
Gets or set the border color of the thumb.
Declaration
public Color ThumbStroke { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Graphics.Color |
Examples
The below example shows how to set the border color of the thumb.
ThumbStrokeThickness
Gets or sets a value to customize the border thickness of the thumb.
Declaration
public double ThumbStrokeThickness { get; set; }
Property Value
Type |
---|
System.Double |
Examples
The below example shows how to set the border thickness of the thumb.
ThumbWidthRequest
Gets or sets a value to customize the width of the thumb.
Declaration
public double ThumbWidthRequest { get; set; }
Property Value
Type |
---|
System.Double |
Examples
The below example shows how to set the width of the thumb.
TrackBackground
Gets or set the background color of the track.
Declaration
public Brush TrackBackground { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.Brush |
Examples
The below example shows how to set the background color of the track.
TrackCornerRadius
Gets or sets a value to customize the corner radius of the track.
Declaration
public CornerRadius TrackCornerRadius { get; set; }
Property Value
Type |
---|
Microsoft.Maui.CornerRadius |
Examples
The below example shows how to set the corner radius of the track.
TrackHeightRequest
Gets or sets a value to customize the height of the track.
Declaration
public double TrackHeightRequest { get; set; }
Property Value
Type |
---|
System.Double |
Examples
The below example shows how to set the height of the track.
TrackStroke
Gets or set the border color of the track.
Declaration
public Color TrackStroke { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Graphics.Color |
Examples
The below example shows how to set the border color of the track.
TrackStrokeThickness
Gets or sets a value to customize the border thickness of the track.
Declaration
public double TrackStrokeThickness { get; set; }
Property Value
Type |
---|
System.Double |
Examples
The below example shows how to set the border thickness of the track.
TrackWidthRequest
Gets or sets a value to customize the width of the track.
Declaration
public double TrackWidthRequest { get; set; }
Property Value
Type |
---|
System.Double |
Examples
The below example shows how to set the width of the track.