Show / Hide Table of Contents

    Class Button

    Extends the ElmSharp.Button control, providing basic formatting features, i.e. font color, size, additional image.

    Inheritance
    System.Object
    Button
    Implements
    IMeasurable
    IBatchable
    Namespace: Tizen.UIExtensions.ElmSharp
    Assembly: Tizen.UIExtensions.ElmSharp.dll
    Syntax
    public class Button : ElmSharp.Button, IMeasurable, IBatchable

    Constructors

    Button(ElmSharp.EvasObject)

    Initializes a new instance of the Button class.

    Declaration
    public Button(ElmSharp.EvasObject parent)
    Parameters
    Type Name Description
    ElmSharp.EvasObject parent

    Parent evas object.

    Properties

    FontAttributes

    Gets or sets the font attributes.

    Declaration
    public FontAttributes FontAttributes { get; set; }
    Property Value
    Type Description
    FontAttributes

    The font attributes.

    FontFamily

    Gets or sets the font family.

    Declaration
    public string FontFamily { get; set; }
    Property Value
    Type Description
    System.String

    The font family.

    FontSize

    Gets or sets the size of the font.

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

    The size of the font.

    Image

    Gets or sets the image to be displayed next to the button's text.

    Declaration
    public ElmSharp.Image? Image { get; set; }
    Property Value
    Type Description
    System.Nullable<ElmSharp.Image>

    The image displayed on the button.

    Text

    Gets or sets the button's text.

    Declaration
    public override string Text { get; set; }
    Property Value
    Type Description
    System.String

    The text.

    TextBackgroundColor

    Gets or sets the color of the text background.

    Declaration
    public Color TextBackgroundColor { get; set; }
    Property Value
    Type Description
    Color

    The color of the text background.

    TextColor

    Gets or sets the color of the text.

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type Description
    Color

    The color of the text.

    Methods

    Measure(Double, Double)

    Implementation of the IMeasurable.Measure() method.

    Declaration
    public virtual Size Measure(double availableWidth, double availableHeight)
    Parameters
    Type Name Description
    System.Double availableWidth
    System.Double availableHeight
    Returns
    Type Description
    Size

    UpdateStyle(String)

    Declaration
    public void UpdateStyle(string style)
    Parameters
    Type Name Description
    System.String style

    Explicit Interface Implementations

    IBatchable.OnBatchCommitted()

    Declaration
    void IBatchable.OnBatchCommitted()

    Implements

    IMeasurable
    IBatchable

    Extension Methods

    ThemeManager.GetTextBlockNativeSize(Button)
    ThemeManager.SetTextBlockStyle(Button, String)
    ThemeManager.SendTextVisibleSignal(Button, Boolean)
    ThemeManager.SetDefaultStyle(Button)
    ThemeManager.SetBottomStyle(Button)
    ThemeManager.SetPopupStyle(Button)
    ThemeManager.SetNavigationTitleRightStyle(Button)
    ThemeManager.SetNavigationTitleLeftStyle(Button)
    ThemeManager.SetNavigationBackStyle(Button)
    ThemeManager.SetNavigationDrawerStyle(Button)
    ThemeManager.SetTransparentStyle(Button)
    ThemeManager.SetWatchPopupRightStyle(Button)
    ThemeManager.SetWatchPopupLeftStyle(Button)
    ThemeManager.SetWatchTextStyle(Button)
    ThemeManager.SetIconPart(Button, Nullable<EvasObject>, Boolean)
    ThemeManager.SetEditFieldClearStyle(Button)
    ThemeManager.GetIconColor(Button)
    ThemeManager.SetIconColor(Button, ElmSharp.Color)
    ThemeManager.SetEffectColor(Button, ElmSharp.Color)
    BatchableExtensions.BatchBegin(IBatchable)
    BatchableExtensions.BatchCommit(IBatchable)
    BatchableExtensions.IsBatched(IBatchable)
    Back to top Copyright © 2021 Samsung
    Generated by DocFX