/// <summary> /// Adds Label and icon to a Popup widget. /// </summary> /// <param name="label">The Label which will be added into a new PopupItem. </param> /// <param name="icon">The icon which will be added into a new PopupItem. </param> /// <returns>The new PopupItem which contains label and icon.</returns> /// <since_tizen> preview </since_tizen> public PopupItem Append(string label, EvasObject icon) { PopupItem item = new PopupItem(label, icon); item.Handle = Interop.Elementary.elm_popup_item_append(Handle, label, icon, null, (IntPtr)item.Id); AddInternal(item); return(item); }
void AddInternal(PopupItem item) { _children.Add(item); item.Deleted += Item_Deleted; }