Пример #1
0
        private UIViewController sample1()
        {
            var leftController = new Left(); // << subclass and create a view
            var rightController = new Right();

            var centerController = new Center();

            var deckController = new ViewDeckController(centerController, leftController, rightController);
            deckController.RightLedge = 100;

            return deckController;
        }
Пример #2
0
        private UIViewController sample3()
        {
            var leftController = new Left();
            var bottomController = new Right();

            var centerController = new Center();
            centerController.Title = "Center 1";

            var secondDeckController = new ViewDeckController(leftController, bottomController);
            secondDeckController.LeftLedge = 100;

            var deckController = new ViewDeckController(centerController, secondDeckController);
            deckController.LeftLedge = 30;

            return deckController;
        }
Пример #3
0
        private void Test()
        {
            var leftController = new Left();
            var rightController = new Right();

            var centerController = new Center();
            centerController.Title = "Center 1";

            var deckController = new ViewDeckController(centerController, leftController, rightController);
            deckController.RightLedge = 100;

            deckController.NavigationControllerBehavior = ViewDeckNavigationControllerBehavior.Contained;

            this.NavigationController.PushViewController(deckController, true);
               // return deckController;
        }