Exemplo n.º 1
0
 public void AddEntries(DropDownMenuItem[] entries, DropDownMenuItem defaultEntry)
 {
     foreach (DropDownMenuItem entry in entries) {
         Action onSelected = entry.OnSelected;
         onSelected += () => dropdown.IsVisible = false;
         dropdown.AddButton (new MenuItemInfo (text: entry.Text, onClick: onSelected));
     }
     selected.Info.Text = defaultEntry.Text;
 }
Exemplo n.º 2
0
 public virtual void AddDropDown(MenuItemInfo info, DropDownMenuItem[] items, DropDownMenuItem defaultItem)
 {
     int num = Items.Count;
     DropDownMenu item = new DropDownMenu (screen, ItemDisplayLayer, num, info);
     assignMenuItemInfo (ref info, num, item);
     item.AddEntries (items, defaultItem);
     Items.Add (item);
 }
Exemplo n.º 3
0
 public override void AddDropDown(MenuItemInfo info, DropDownMenuItem[] items, DropDownMenuItem defaultItem)
 {
     base.AddDropDown (info, items, defaultItem);
 }