Class ButtonStyle

    Definition

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

    ButtonStyle is a class which saves Button's ux data.

    public class ButtonStyle : ControlStyle, IDynamicResourceHandler, IDisposable
    Inheritance
    object
    BindableObject
    ViewStyle
    ControlStyle
    ButtonStyle
    Derived
    AlertDialogStyle
    AlertDialogStyle
    AlertDialogStyle
    LottieButtonStyle
    LottieButtonStyle
    LottieButtonStyle
    OverlayAnimationButtonStyle
    OverlayAnimationButtonStyle
    OverlayAnimationButtonStyle
    SwitchStyle
    SwitchStyle
    SwitchStyle
    TabButtonStyle
    TabButtonStyle
    TabButtonStyle
    Implements
    IDynamicResourceHandler
    IDisposable

    Constructors

    View Source

    ButtonStyle()

    Creates a new instance of a ButtonStyle.

    Declaration
    public ButtonStyle()
    View Source

    ButtonStyle(ButtonStyle)

    Creates a new instance of a ButtonStyle with style.

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

    Create ButtonStyle by style customized by user.

    Fields

    View Source

    IconPaddingProperty

    Declaration
    public static readonly BindableProperty IconPaddingProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    IconRelativeOrientationProperty

    Declaration
    public static readonly BindableProperty IconRelativeOrientationProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    IsSelectableProperty

    Declaration
    public static readonly BindableProperty IsSelectableProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    IsSelectedProperty

    Declaration
    public static readonly BindableProperty IsSelectedProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    TextPaddingProperty

    Declaration
    public static readonly BindableProperty TextPaddingProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    View Source

    Icon

    Icon's Style.

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

    IconPadding

    Icon padding in Button. It is shortcut of Icon.Padding.

    Declaration
    public Extents IconPadding { get; set; }
    Property Value
    Type Description
    Extents
    View Source

    IconRelativeOrientation

    Icon relative orientation.

    Declaration
    public Button.IconOrientation? IconRelativeOrientation { get; set; }
    Property Value
    Type Description
    IconOrientation?
    View Source

    IsEnabled

    Flag to decide button can be selected or not.

    Declaration
    public bool? IsEnabled { get; set; }
    Property Value
    Type Description
    bool?
    View Source

    IsSelectable

    Flag to decide Button can be selected or not.

    Declaration
    public bool? IsSelectable { get; set; }
    Property Value
    Type Description
    bool?
    View Source

    IsSelected

    Flag to decide selected state in Button.

    Declaration
    public bool? IsSelected { get; set; }
    Property Value
    Type Description
    bool?
    View Source

    ItemAlignment

    The item (text or icon or both) alignment.

    Declaration
    public LinearLayout.Alignment? ItemAlignment { get; set; }
    Property Value
    Type Description
    Alignment?
    View Source

    ItemHorizontalAlignment

    The item (text or icon or both) horizontal alignment.

    Declaration
    public HorizontalAlignment? ItemHorizontalAlignment { get; set; }
    Property Value
    Type Description
    HorizontalAlignment?
    View Source

    ItemSpacing

    The space between icon and text. The value is applied when there exist icon and text both. The width value is used when the items are arranged horizontally. Otherwise, the height value is used.

    Declaration
    public Size2D ItemSpacing { get; set; }
    Property Value
    Type Description
    Size2D
    View Source

    ItemVerticalAlignment

    The item (text or icon or both) vertical alignment.

    Declaration
    public VerticalAlignment? ItemVerticalAlignment { get; set; }
    Property Value
    Type Description
    VerticalAlignment?
    View Source

    Overlay

    Overlay image's Style.

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

    Text

    Text's Style.

    Declaration
    public TextLabelStyle Text { get; set; }
    Property Value
    Type Description
    TextLabelStyle
    View Source

    TextPadding

    Text padding in Button. It is shortcut of Text.Padding.

    Declaration
    public Extents TextPadding { get; set; }
    Property Value
    Type Description
    Extents

    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
    ViewStyle.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 virtual ButtonExtension CreateExtension()
    Returns
    Type Description
    ButtonExtension
    View Source

    Dispose(bool)

    Dispose ButtonStyle and all children on it.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    true in order to free managed objects

    Overrides
    ViewStyle.Dispose(bool)

    Implements

    IDynamicResourceHandler
    IDisposable

    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