Class SwitchExtension

    Definition

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

    The SwitchExtension class allows developers to access the Switch's components and extend their behavior in various states.

    public abstract class SwitchExtension : ButtonExtension
    Inheritance
    object
    ButtonExtension
    SwitchExtension
    Derived
    LottieSwitchExtension
    LottieSwitchExtension
    LottieSwitchExtension
    LottieSwitchExtension

    Methods

    View Source

    OnSelectedChanged(Switch)

    Called when the Switch's selection has changed.

    Declaration
    public virtual void OnSelectedChanged(Switch switchButton)
    Parameters
    Type Name Description
    Switch switchButton

    The Switch instance that the extension currently applied to.

    View Source

    OnTrackOrThumbResized(Switch, ImageView, ImageView)

    Called when the Switch's track or thumb resized.

    Declaration
    public virtual void OnTrackOrThumbResized(Switch switchButton, ImageView track, ImageView thumb)
    Parameters
    Type Name Description
    Switch switchButton
    ImageView track
    ImageView thumb
    View Source

    ProcessThumb(Switch, ref ImageView)

    Perform further processing of the switch thumb.

    Declaration
    public bool ProcessThumb(Switch switchButton, ref ImageView thumb)
    Parameters
    Type Name Description
    Switch switchButton

    The switch instance that the extension currently applied to.

    ImageView thumb

    The reference of the switch thumb.

    Returns
    Type Description
    bool

    Extension Methods

    EXamlExtensions.LoadFromEXaml<T>(T, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    EXamlExtensions.LoadFromEXamlPath<TXaml>(TXaml, string)
    EXamlExtensions.LoadFromEXamlPath<T>(T, Type)
    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