Class SwitchStyle

    Definition

    Namespace:
    Tizen.NUI.Components
    Assembly:
    Tizen.NUI.Components.dll

    SwitchStyle is a class which saves Switch's ux data.

    public class SwitchStyle : ButtonStyle, IDynamicResourceHandler, IDisposable
    Inheritance
    object
    BindableObject
    ViewStyle
    ControlStyle
    ButtonStyle
    SwitchStyle
    Derived
    LottieSwitchStyle
    Implements
    IDynamicResourceHandler
    IDisposable

    Constructors

    View Source

    SwitchStyle()

    Creates a new instance of a SwitchStyle.

    Declaration
    public SwitchStyle()
    View Source

    SwitchStyle(SwitchStyle)

    Creates a new instance of a SwitchStyle with style.

    Declaration
    public SwitchStyle(SwitchStyle style)
    Parameters
    Type Name Description
    SwitchStyle style

    Create SwitchStyle by style customized by user.

    Properties

    View Source

    Thumb

    Thumb image's style.

    Declaration
    public ImageViewStyle Thumb { get; set; }
    Property Value
    Type Description
    ImageViewStyle
    View Source

    Track

    Track image's style.

    Declaration
    public ImageViewStyle Track { get; set; }
    Property Value
    Type Description
    ImageViewStyle

    Methods

    View Source

    CopyFrom(BindableObject)

    Copy properties of other ViewStyle to this.

    Declaration
    public override void CopyFrom(BindableObject bindableObject)
    Parameters
    Type Name Description
    BindableObject bindableObject
    Overrides
    ButtonStyle.CopyFrom(BindableObject)
    View Source

    CreateExtension()

    Create corresponding ButtonExtension. This is to be called by a Button. You may override this function to customize button's behavior.

    Declaration
    public override ButtonExtension CreateExtension()
    Returns
    Type Description
    ButtonExtension
    Overrides
    ButtonStyle.CreateExtension()

    Implements

    IDynamicResourceHandler
    IDisposable

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX