Show / Hide Table of Contents

    Class ToolbarItem

    Definition

    Namespace:
    ElmSharp
    Assembly:
    ElmSharp.dll
    API Level:
    preview

    The ToolbarItem is an item of the toolbar.

    public class ToolbarItem : ItemObject
    Inheritance
    Object
    ItemObject
    ToolbarItem

    Properties

    View Source

    Enabled

    Enabled is obsolete as of version v1.1.0-beta-023. Please use IsEnabled instead.

    Sets or gets the enable of the item.

    Declaration
    [Obsolete("Enabled is obsolete as of version v1.1.0-beta-023. Please use IsEnabled instead.")]
    public bool Enabled { get; set; }
    Property Value
    Type Description
    Boolean
    API Level: preview
    View Source

    Icon

    Sets or gets the icon path of the item.

    Declaration
    public string Icon { get; set; }
    Property Value
    Type Description
    String
    API Level: preview
    View Source

    IsSelected

    Sets or gets whether the item is selected.

    Declaration
    public bool IsSelected { get; set; }
    Property Value
    Type Description
    Boolean
    API Level: preview
    View Source

    IsSeparator

    Sets or gets whether displaying the item as a separator.

    Declaration
    public bool IsSeparator { get; set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Items aren't set as a separator by default. If set as a separator, it displays a separator theme, so it won't display the icons or labels.

    API Level: preview
    View Source

    Text

    Sets or gets the text string of the item.

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    String
    API Level: preview

    Events

    View Source

    Clicked

    Clicked will be triggered when the item is clicked.

    Declaration
    public event EventHandler Clicked
    Event Type
    Type Description
    EventHandler
    API Level: preview
    View Source

    LongPressed

    LongPressed will be triggered when the item is pressed for a long time.

    Declaration
    public event EventHandler LongPressed
    Event Type
    Type Description
    EventHandler
    API Level: preview
    View Source

    Selected

    Selected will be triggered when the item is selected.

    Declaration
    public event EventHandler Selected
    Event Type
    Type Description
    EventHandler
    API Level: preview

    Extension Methods

    ItemObjectExtension.GrabHighlight(ItemObject)
    ItemObjectExtension.ClearHighlight(ItemObject)
    • View Source
    Back to top Copyright © 2016-2020 Samsung
    Generated by DocFX