protected override void OnClicked() { Menu popupMenu = new Menu(); Menu recentMenu = new Menu(); MenuItem item; ImageMenuItem imageItem; AvatarMenuItem amItem = new AvatarMenuItem(); amItem.AvatarSelected += OnAvatarSelected; popupMenu.Add(amItem); popupMenu.Add(new SeparatorMenuItem()); item = new MenuItem("Edit Picture..."); item.Activated += OnEditPicture; popupMenu.Add(item); item = new MenuItem("Clear Recent Pictures"); item.Activated += OnClearRecentPictures; popupMenu.Add(item); popupMenu.ShowAll(); popupMenu.Popup(); }
protected override void OnClicked() { Menu popupMenu = new Menu (); Menu recentMenu = new Menu (); MenuItem item; ImageMenuItem imageItem; AvatarMenuItem amItem = new AvatarMenuItem(); amItem.AvatarSelected += OnAvatarSelected; popupMenu.Add(amItem); popupMenu.Add (new SeparatorMenuItem ()); item = new MenuItem("Edit Picture..."); item.Activated += OnEditPicture; popupMenu.Add (item); item = new MenuItem("Clear Recent Pictures"); item.Activated += OnClearRecentPictures; popupMenu.Add (item); popupMenu.ShowAll(); popupMenu.Popup (); }