Exemplo n.º 1
0
        private UIViewController sample0()
        {
            var centerController = new Center();

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

            return deckController;
        }
Exemplo n.º 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;
        }
Exemplo n.º 3
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;
        }
Exemplo n.º 4
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;
        }
Exemplo n.º 5
0
 public virtual bool WillCloseLeftView(ViewDeckController viewDeckController, bool animated)
 {
     return true;
 }
Exemplo n.º 6
0
 public virtual bool WillOpenRightView(ViewDeckController viewDeckController, bool animated)
 {
     return true;
 }
Exemplo n.º 7
0
 public virtual void DidShowCenterView(ViewDeckController viewDeckController, bool animated)
 {
 }
Exemplo n.º 8
0
 public virtual void SlideOffsetChanged(ViewDeckController viewDeckController, float offset)
 {
 }
Exemplo n.º 9
0
 public virtual void DidPanToOffset(ViewDeckController viewDeckController, float offset)
 {
 }
Exemplo n.º 10
0
 public virtual void DidOpenRightView(ViewDeckController viewDeckController, bool animated)
 {
 }
Exemplo n.º 11
0
 public virtual void DidCloseLeftView(ViewDeckController viewDeckController, bool animated)
 {
 }
Exemplo n.º 12
0
 public virtual void DidBounceWithClosingController(ViewDeckController viewDeckController, UIViewController openController)
 {
 }
Exemplo n.º 13
0
 public virtual bool ApplyShadow(ViewDeckController viewDeckController, CALayer shadowLayer, RectangleF rect)
 {
     return false;
 }