Esempio n. 1
0
        private void showMenuInView(UIView view, RectangleF rect, List <KxMenuItem> menuItems)
        {
            _menuItems = menuItems;

            _contentView = this.mkContentView();
            this.AddSubview(_contentView);

            this.setupFrameInView(view, rect);

            var overlay = new KxMenuOverlay {
                Frame = view.Bounds
            };

            overlay.AddSubview(this);
            view.Add(overlay);

            _contentView.Hidden = true;
            RectangleF toFrame = this.Frame;

            this.Frame = new RectangleF(this.arrowPoint(), new SizeF(1, 1));

            UIView.Animate(0.2,
                           delegate
            {
                this.Alpha = 1.0f;
                this.Frame = toFrame;
            },
                           delegate
            {
                _contentView.Hidden = false;
            });
        }
Esempio n. 2
0
        private void showMenuInView(UIView view, RectangleF rect, List<KxMenuItem> menuItems)
        {
            _menuItems = menuItems;

            _contentView = this.mkContentView();
            this.AddSubview(_contentView);

            this.setupFrameInView(view, rect);

            var overlay = new KxMenuOverlay { Frame = view.Bounds };
            overlay.AddSubview(this);
            view.Add(overlay);

            _contentView.Hidden = true;
            RectangleF toFrame = this.Frame;
            this.Frame = new RectangleF(this.arrowPoint(), new SizeF(1, 1));

            UIView.Animate(0.2,
            delegate
            {
                this.Alpha = 1.0f;
                this.Frame = toFrame;
            },
            delegate
            {
                _contentView.Hidden = false;
            });
        }