Class ButtonExtension

    Definition

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

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

    public abstract class ButtonExtension
    Inheritance
    object
    ButtonExtension
    Derived
    LottieButtonExtension
    LottieButtonExtension
    LottieButtonExtension
    SwitchExtension
    SwitchExtension
    SwitchExtension

    Properties

    View Source

    TouchInfo

    The Touch info to get current touch position.

    Declaration
    protected Touch TouchInfo { get; }
    Property Value
    Type Description
    Touch

    Methods

    View Source

    OnClicked(Button, ClickedEventArgs)

    Called when the Button is Clicked by a user

    Declaration
    public virtual void OnClicked(Button button, ClickedEventArgs eventArgs)
    Parameters
    Type Name Description
    Button button

    The Button instance that the extension currently applied to.

    ClickedEventArgs eventArgs

    The click event information.

    View Source

    OnControlStateChanged(Button, ControlStateChangedEventArgs)

    Describes actions on Button's ControlStates changed.

    Declaration
    public virtual void OnControlStateChanged(Button button, View.ControlStateChangedEventArgs args)
    Parameters
    Type Name Description
    Button button

    The Button instance that the extension currently applied to.

    View.ControlStateChangedEventArgs args

    The control state changed information.

    View Source

    OnDispose(Button)

    Called when the attached Button is explicitly disposing.

    Declaration
    public virtual void OnDispose(Button button)
    Parameters
    Type Name Description
    Button button

    The Button instance that the extension currently applied to.

    View Source

    OnRelayout(Button)

    Called after the size negotiation has been finished for the attached Control.

    Declaration
    public virtual void OnRelayout(Button button)
    Parameters
    Type Name Description
    Button button

    The Button instance that the extension currently applied to.

    View Source

    ProcessIcon(Button, ref ImageView)

    Perform further processing of the button icon.

    Declaration
    public virtual bool ProcessIcon(Button button, ref ImageView icon)
    Parameters
    Type Name Description
    Button button

    The button instance that the extension currently applied to.

    ImageView icon

    The reference of the button icon.

    Returns
    Type Description
    bool
    View Source

    ProcessOverlayImage(Button, ref ImageView)

    Perform further processing of the button overlay image.

    Declaration
    public virtual bool ProcessOverlayImage(Button button, ref ImageView overlayImage)
    Parameters
    Type Name Description
    Button button

    The button instance that the extension currently applied to.

    ImageView overlayImage

    The reference of the button overlay image.

    Returns
    Type Description
    bool
    View Source

    ProcessText(Button, ref TextLabel)

    Perform further processing of the button text.

    Declaration
    public virtual bool ProcessText(Button button, ref TextLabel text)
    Parameters
    Type Name Description
    Button button

    The button instance that the extension currently applied to.

    TextLabel text

    The reference of the button text.

    Returns
    Type Description
    bool
    View Source

    SetTouchInfo(Touch)

    Set the Touch Info.

    Declaration
    public void SetTouchInfo(Touch touch)
    Parameters
    Type Name Description
    Touch touch

    The Touch Info.

    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