public void DisplayLogoutMenu(UIBarButtonItem barButton, UIEvent evt) { var touch = evt.AllTouches.ToArray <UITouch>().First(); var frame = new RectangleF(touch.View.Frame.X, -27, touch.View.Frame.Width, touch.View.Frame.Height); KxMenuView.Show(View, frame, _menuItems); }
public static void Show(UIView view, RectangleF rect, List <KxMenuItem> menuItems) { if (_sharedMenu != null) { _sharedMenu.dismissMenu(false); } _sharedMenu = new KxMenuView(); _sharedMenu.showMenuInView(view, rect, menuItems); }
public static void Show(UIView view, RectangleF rect, List<KxMenuItem> menuItems) { if (_sharedMenu != null) _sharedMenu.dismissMenu(false); _sharedMenu = new KxMenuView(); _sharedMenu.showMenuInView(view, rect, menuItems); }