public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			var items = new List<object> {
				"Vegetables","Fruits","Flower Buds",
				"Legumes","Bulbs","Tubers"
			};
			_menu = new ButtonMenu(this.View, items, 
				new CGRect (230, HeaderView.Frame.Height + 30, 150, 30));
			_menu.OnSelected += (object sender, object selected) => {
				Console.WriteLine("object {0}", selected.ToString());
				_menu.Toggle();
			};
				
		}
示例#2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var items = new List <object> {
                "Vegetables", "Fruits", "Flower Buds",
                "Legumes", "Bulbs", "Tubers"
            };

            _menu = new ButtonMenu(this.View, items,
                                   new CGRect(230, HeaderView.Frame.Height + 30, 150, 30));
            _menu.OnSelected += (object sender, object selected) => {
                Console.WriteLine("object {0}", selected.ToString());
                _menu.Toggle();
            };
        }
示例#3
0
 partial void MenuButton_TouchUpInside(UIButton sender)
 {
     _menu.Toggle();
 }