menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MaterialSwitchSettings<T> - API Reference

    Show / Hide Table of Contents

    Class MaterialSwitchSettings<T>

    Represents the MaterialSwitchSettings<T> class.

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

    The return params.

    Constructors

    MaterialSwitchSettings()

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

    Declaration
    public MaterialSwitchSettings()

    Fields

    BusyIndicatorColorProperty

    Identifies the BusyIndicatorColor dependency property. This property can be used to busy indicator color of the ISwitchSettings class.

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

    HasThumbShadowProperty

    Identifies the HasThumbShadow dependency property. This property can be enable the thumb shadow of the ISwitchSettings class.

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

    ThumbBorderColorProperty

    Identifies the ThumbBorderColor dependency property. This property can be used to to change the Thumb border color of the ISwitchSettings class.

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

    ThumbBorderWidthProperty

    Identifies the ThumbBorderWidth dependency property. This property can be used to change the thumb border width of the ISwitchSettings class.

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

    ThumbColorProperty

    Identifies the ThumbColor dependency property. This property can be used to change the thumbColor of the ISwitchSettings class.

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

    ThumbCornerRadiusProperty

    Identifies the ThumbCornerRadius dependency property. This property can be used to change the thumbCorner radius of the ISwitchSettings class.

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

    ThumbGradientProperty

    Identifies the ThumbGradient dependency property. This property can be used to change the thumb gradient of the ISwitchSettings class.

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

    ThumbHeightRequestProperty

    Identifies the ThumbHeightRequest dependency property. This property can be used to change the thumb height request of the ISwitchSettings class.

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

    ThumbImageSourceProperty

    Identifies the ThumbImageSource dependency property. This property can be used to thumb image source of the ISwitchSettings class.

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

    ThumbWidthRequestProperty

    Identifies the ThumbWidthRequest dependency property. This property can be used to change the thumb width request of the ISwitchSettings class.

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

    TrackBorderColorProperty

    Identifies the TrackBorderColor dependency property. This property can be used to change the track border color of the ISwitchSettings class.

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

    TrackBorderWidthProperty

    Identifies the TrackBorderWidth dependency property. This property can be used to change the track border width of the ISwitchSettings class.

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

    TrackColorProperty

    Identifies the TrackColor dependency property. This property can be used to change the track color of the ISwitchSettings class.

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

    TrackCornerRadiusProperty

    Identifies the TrackCornerRadius dependency property. This property can be used to track corner radius of the ISwitchSettings class.

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

    TrackGradientProperty

    Identifies the TrackGradient dependency property. This property can be used to to change the track gradient of the ISwitchSettings class.

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

    TrackHeightRequestProperty

    Identifies the TrackHeightRequest dependency property. This property can be used to track height request of the ISwitchSettings class.

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

    TrackImageSourceProperty

    Identifies the TrackImageSource dependency property. This property can be used to change the track image source of the ISwitchSettings class.

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

    TrackWidthRequestProperty

    Identifies the TrackWidthRequest dependency property. This property can be used to track width request of the ISwitchSettings class.

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

    Properties

    BusyIndicatorColor

    Gets or sets thumb busy indicator color.

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

    HasThumbShadow

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

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

    ThumbBorderColor

    Gets or sets thumb border color .

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

    ThumbBorderWidth

    Gets or Sets the default value for thumb border width.

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

    ThumbColor

    Gets or sets Thumb color.

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

    ThumbCornerRadius

    Gets or sets Thumb corner radius.

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

    ThumbGradient

    Gets or sets thumb gradient.

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

    ThumbHeightRequest

    Gets or sets thumb height request.

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

    ThumbImageSource

    Gets or sets thumb image.

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

    ThumbWidthRequest

    Gets or sets thumb width request.

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

    TrackBorderColor

    Gets or sets border color.

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

    TrackBorderWidth

    Gets or sets track border width.

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

    TrackColor

    Gets or sets track color.

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

    TrackCornerRadius

    Gets or sets track corner radius.

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

    TrackGradient

    Gets or sets track gradient.

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

    TrackHeightRequest

    Gets or sets track height request.

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

    TrackImageSource

    Gets or sets track image source.

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

    TrackWidthRequest

    Gets or sets track width request.

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

    Implements

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