Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }