Class ToolbarItem

Definition

Namespace:
ElmSharp
Assembly:
ElmSharp.dll

The ToolbarItem is an item of the toolbar.

C#
Copy
[Obsolete("This has been deprecated in API12")] public class ToolbarItem : ItemObject
Inheritance
object
ToolbarItem

Properties

View Source

Enabled

Sets or gets the enable of the item.

Declaration
C#
Copy
[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
bool
View Source

Icon

Sets or gets the icon path of the item.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public string Icon { get; set; }
Property Value
Type Description
string
View Source

IsSelected

Sets or gets whether the item is selected.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public bool IsSelected { get; set; }
Property Value
Type Description
bool
View Source

IsSeparator

Sets or gets whether displaying the item as a separator.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public bool IsSeparator { get; set; }
Property Value
Type Description
bool
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.

View Source

Text

Sets or gets the text string of the item.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public string Text { get; set; }
Property Value
Type Description
string

Events

View Source

Clicked

Clicked will be triggered when the item is clicked.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public event EventHandler Clicked
Event Type
Type Description
System.EventHandler
View Source

LongPressed

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

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public event EventHandler LongPressed
Event Type
Type Description
System.EventHandler
View Source

Selected

Selected will be triggered when the item is selected.

Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")] public event EventHandler Selected
Event Type
Type Description
System.EventHandler

Extension Methods