void AddItem(ActionToolItem aitem, int pos) { aitem.KeyPressEvent += OnItemKeyPress; CustomToolbarItem it = new CustomToolbarItem(); it.ActionToolItem = aitem; it.Child = aitem; it.ShowAll(); Insert(it, pos); }
void AddItem (ActionToolItem aitem, int pos) { aitem.KeyPressEvent += OnItemKeyPress; CustomToolbarItem it = new CustomToolbarItem (); it.ActionToolItem = aitem; it.Child = aitem; it.ShowAll (); Insert (it, pos); }