namespace ElmSharp
{
+ /// <summary>
+ /// The ToolbarItem is a item of Toolbar.
+ /// </summary>
public class ToolbarItem : ItemObject
{
string _icon;
_icon = icon;
}
+ /// <summary>
+ /// Sets or gets the icon path of the item.
+ /// </summary>
public string Icon
{
get
Interop.Elementary.elm_toolbar_item_icon_set(Handle, value);
}
}
+
+ /// <summary>
+ /// Sets or gets the text string of the item.
+ /// </summary>
public string Text
{
get
SetPartText(null, value);
}
}
+
+ /// <summary>
+ /// Sets or gets the enable of the item.
+ /// </summary>
public bool Enabled
{
get
Interop.Elementary.elm_object_disabled_set(Handle, !value);
}
}
+
+ /// <summary>
+ /// Sets or gets whether displaying the item as a separator.
+ /// </summary>
+ /// <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 icons or labels.</remarks>
public bool IsSeparator
{
get
Interop.Elementary.elm_toolbar_item_separator_set(Handle, value);
}
}
+
+ /// <summary>
+ /// Sets or gets whether the item is selected.
+ /// </summary>
public bool IsSelected
{
get
}
}
+ /// <summary>
+ /// Selected will be triggered when the item is selected.
+ /// </summary>
public event EventHandler Selected;
+
+ /// <summary>
+ /// LongPressed will be triggered when the item is pressed long time.
+ /// </summary>
public event EventHandler LongPressed;
+
+ /// <summary>
+ /// Clicked will be triggered when the item is clicked.
+ /// </summary>
public event EventHandler Clicked;
internal void SendSelected()