menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DefaultSwitchSettings<T> - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DefaultSwitchSettings<T>

    Represents the DefaultSwitchSettings<T> class.

    Inheritance
    System.Object
    DefaultSwitchSettings<T>
    Implements
    ISwitchSettings
    Namespace: Syncfusion.XForms.Buttons
    Assembly: Syncfusion.Buttons.XForms.dll
    Syntax
    public class DefaultSwitchSettings<T> : Element, ISwitchSettings where T : ISwitchState
    Type Parameters
    Name Description
    T

    The return parameter.

    Constructors

    DefaultSwitchSettings()

    Initializes a new instance of the DefaultSwitchSettings<T> class.

    Declaration
    public DefaultSwitchSettings()

    Fields

    BusyIndicatorColorProperty

    Identifies the dependency property. This property can be used to busy indicator color of the DefaultSwitchSettings<T> class.

    Declaration
    public static readonly BindableProperty BusyIndicatorColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    HasThumbShadowProperty

    Identifies the dependency property. This property can be enable the thumb shadow of the DefaultSwitchSettings<T> class.

    Declaration
    public static readonly BindableProperty HasThumbShadowProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ThumbBorderColorProperty

    Identifies the dependency property. This property can be used to to change the Thumb border color of the DefaultSwitchSettings<T> class.

    Declaration
    public static readonly BindableProperty ThumbBorderColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ThumbBorderWidthProperty

    Identifies the dependency property. This property can be used to change the thumb border width of the DefaultSwitchSettings<T> class.

    Declaration
    public static readonly BindableProperty ThumbBorderWidthProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ThumbColorProperty

    Identifies the dependency property. This property can be used to change the thumbColor of the DefaultSwitchSettings<T> class.

    Declaration
    public static readonly BindableProperty ThumbColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ThumbCornerRadiusProperty

    Identifies the dependency property. This property can be used to change the thumbCorner radius of the DefaultSwitchSettings<T> class.

    Declaration
    public static readonly BindableProperty ThumbCornerRadiusProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ThumbGradientProperty

    Identifies the dependency property. This property can be used to change the thumb gradient of the DefaultSwitchSettings<T> class.

    Declaration
    public static readonly BindableProperty ThumbGradientProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ThumbHeightRequestProperty

    Identifies the dependency property. This property can be used to change the thumb height request of the DefaultSwitchSettings<T> class.

    Declaration
    public static readonly BindableProperty ThumbHeightRequestProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ThumbImageSourceProperty

    Identifies the dependency property. This property can be used to thumb image source of the DefaultSwitchSettings<T> class.

    Declaration
    public static readonly BindableProperty ThumbImageSourceProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    ThumbWidthRequestProperty

    Identifies the dependency property. This property can be used to change the thumb width request of the DefaultSwitchSettings<T> class.

    Declaration
    public static readonly BindableProperty ThumbWidthRequestProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    TrackBorderColorProperty

    Identifies the dependency property. This property can be used to change the track border color of the DefaultSwitchSettings<T> class.

    Declaration
    public static readonly BindableProperty TrackBorderColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    TrackBorderWidthProperty

    Identifies the dependency property. This property can be used to change the track border width of the DefaultSwitchSettings<T> class.

    Declaration
    public static readonly BindableProperty TrackBorderWidthProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    TrackColorProperty

    Identifies the dependency property. This property can be used to change the track color of the DefaultSwitchSettings<T> class.

    Declaration
    public static readonly BindableProperty TrackColorProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    TrackCornerRadiusProperty

    Identifies the dependency property. This property can be used to track corner radius of the DefaultSwitchSettings<T> class.

    Declaration
    public static readonly BindableProperty TrackCornerRadiusProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    TrackGradientProperty

    Identifies the dependency property. This property can be used to to change the track gradient of the DefaultSwitchSettings<T> class.

    Declaration
    public static readonly BindableProperty TrackGradientProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    TrackHeightRequestProperty

    Identifies the dependency property. This property can be used to track height request of the DefaultSwitchSettings<T> class.

    Declaration
    public static readonly BindableProperty TrackHeightRequestProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    TrackImageSourceProperty

    Identifies the dependency property. This property can be used to change the track image source of the DefaultSwitchSettings<T> class.

    Declaration
    public static readonly BindableProperty TrackImageSourceProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    TrackWidthRequestProperty

    Identifies the dependency property. This property can be used to change the thumb width request of the DefaultSwitchSettings<T> class.

    Declaration
    public static readonly BindableProperty TrackWidthRequestProperty
    Field Value
    Type
    Xamarin.Forms.BindableProperty

    Properties

    BusyIndicatorColor

    Gets or sets thumb busy indicator color.

    Declaration
    public Color BusyIndicatorColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    HasThumbShadow

    Gets or sets a value indicating whether to display thumb shadow. This thumb shadow is applicable for android Android and iOS devices.

    Declaration
    public bool HasThumbShadow { get; set; }
    Property Value
    Type
    System.Boolean

    ThumbBorderColor

    Gets or sets thumb border color.

    Declaration
    public Color ThumbBorderColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    ThumbBorderWidth

    Gets or Sets the default value for thumb border width.

    Declaration
    public double ThumbBorderWidth { get; set; }
    Property Value
    Type
    System.Double

    ThumbColor

    Gets or sets Thumb color.

    Declaration
    public Color ThumbColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    ThumbCornerRadius

    Gets or sets Thumb corner radius.

    Declaration
    public double ThumbCornerRadius { get; set; }
    Property Value
    Type
    System.Double

    ThumbGradient

    Gets or sets thumb gradient.

    Declaration
    public SfGradientBrush ThumbGradient { get; set; }
    Property Value
    Type
    SfGradientBrush

    ThumbHeightRequest

    Gets or sets thumb height request.

    Declaration
    public double ThumbHeightRequest { get; set; }
    Property Value
    Type
    System.Double

    ThumbImageSource

    Gets or sets thumb image.

    Declaration
    public ImageSource ThumbImageSource { get; set; }
    Property Value
    Type
    Xamarin.Forms.ImageSource

    ThumbWidthRequest

    Gets or sets thumb width request.

    Declaration
    public double ThumbWidthRequest { get; set; }
    Property Value
    Type
    System.Double

    TrackBorderColor

    Gets or sets border color.

    Declaration
    public Color TrackBorderColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    TrackBorderWidth

    Gets or sets track border width.

    Declaration
    public double TrackBorderWidth { get; set; }
    Property Value
    Type
    System.Double

    TrackColor

    Gets or sets track color.

    Declaration
    public Color TrackColor { get; set; }
    Property Value
    Type
    Xamarin.Forms.Color

    TrackCornerRadius

    Gets or sets track corner radius.

    Declaration
    public double TrackCornerRadius { get; set; }
    Property Value
    Type
    System.Double

    TrackGradient

    Gets or sets track gradient.

    Declaration
    public SfGradientBrush TrackGradient { get; set; }
    Property Value
    Type
    SfGradientBrush

    TrackHeightRequest

    Gets or sets track height request.

    Declaration
    public double TrackHeightRequest { get; set; }
    Property Value
    Type
    System.Double

    TrackImageSource

    Gets or sets track image source.

    Declaration
    public ImageSource TrackImageSource { get; set; }
    Property Value
    Type
    Xamarin.Forms.ImageSource

    TrackWidthRequest

    Gets or sets track width request.

    Declaration
    public double TrackWidthRequest { get; set; }
    Property Value
    Type
    System.Double

    Implements

    ISwitchSettings
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved