Exemple #1
0
        //FlyoutNavigationController navigation;
        public override void ViewDidLoad()
        {
            //Create Navigation

            base.ViewDidLoad();

            //Create The View you want to have sliding in
            UIView slidingContent = new UIView(new RectangleF(0, 0, 220, 550));

            slidingContent.BackgroundColor = UIColor.Blue;

            //Add the view from the controller
            var lgSwipe = new LegendarySwipe(slidingContent);

            View.Add(lgSwipe.content);

            //have something that closes it
            var open = new UITapGestureRecognizer(() => lgSwipe.openIt());

            clickButton.UserInteractionEnabled = true;
            clickButton.AddGestureRecognizer(open);

            //have something that closes it

            /*
             * var close = new UITapGestureRecognizer (() => lgSwipe.closeIt());
             * clickButton.UserInteractionEnabled = true;
             * clickButton.AddGestureRecognizer (close);
             */
        }
        //FlyoutNavigationController navigation;
        public override void ViewDidLoad()
        {
            //Create Navigation

            base.ViewDidLoad ();

            //Create The View you want to have sliding in
            UIView slidingContent = new UIView (new RectangleF(0,0,220,550));
            slidingContent.BackgroundColor = UIColor.Blue;

            //Add the view from the controller
            var lgSwipe = new LegendarySwipe (slidingContent);
            View.Add (lgSwipe.content);

            //have something that closes it
            var open = new UITapGestureRecognizer (() => lgSwipe.openIt());
            clickButton.UserInteractionEnabled = true;
            clickButton.AddGestureRecognizer (open);

            //have something that closes it
            /*
            var close = new UITapGestureRecognizer (() => lgSwipe.closeIt());
            clickButton.UserInteractionEnabled = true;
            clickButton.AddGestureRecognizer (close);
            */
        }