コード例 #1
0
		public void ViewDeckSimpleSample()
		{
			var leftController = new ViewDeckSamples.LeftController();
			var rightController = new ViewDeckSamples.RightController();
			
			var centerController = new ViewDeckSamples.CenterController(true);
			
			var deckController = new ViewDeckController(centerController, leftController, rightController);
			deckController.RightLedge = 40;
			deckController.LeftLedge = 100;
            // use this to control if panning is enabled
            // deckController.Enabled = false;
			
			this.PresentViewController(deckController, true, null);
			
		}
コード例 #2
0
 public virtual void DidShowCenterView(ViewDeckController viewDeckController, bool animated) 
 {
 }
コード例 #3
0
 public virtual void DidCloseRightView(ViewDeckController viewDeckController, bool animated) 
 {
 }
コード例 #4
0
 public virtual bool WillCloseRightView(ViewDeckController viewDeckController, bool animated) 
 {
     return true;
 }
コード例 #5
0
 public virtual void DidOpenLeftView(ViewDeckController viewDeckController, bool animated) 
 {
 }
コード例 #6
0
 public virtual bool WillOpenLeftView(ViewDeckController viewDeckController, bool animated) 
 {
     return true;
 }
コード例 #7
0
 public virtual void DidBounceWithClosingController(ViewDeckController viewDeckController, UIViewController openController) 
 {
 }
コード例 #8
0
 public virtual void SlideOffsetChanged(ViewDeckController viewDeckController, float offset) 
 {
 }
コード例 #9
0
 public virtual void DidPanToOffset(ViewDeckController viewDeckController, float offset) 
 {
 }
コード例 #10
0
 public virtual bool ApplyShadow(ViewDeckController viewDeckController, CALayer shadowLayer, RectangleF rect) 
 {
     return false;
 }
コード例 #11
0
 public void GotoDeck()
 {
     var leftController = new LeftController(); 
     var rightController = new RightController();
     
     var centerController = new CenterController(false);
     centerController.Title = "Center";
     
     var deckController = new ViewDeckController(centerController, leftController, rightController);
     deckController.RightLedge = 40;
     deckController.LeftLedge = 100;
     
     if (this.contained)
     {
         deckController.NavigationControllerBehavior = ViewDeckNavigationControllerBehavior.Contained;
     }
     else
     {
         deckController.NavigationControllerBehavior = ViewDeckNavigationControllerBehavior.Integrated;
     }
     
     this.NavigationController.PushViewController(deckController, true);
 }
コード例 #12
0
        public void ViewDeckMultiDeckSample()
        {
            var leftController = new ViewDeckSamples.MultiMiddleController(); 
            var bottomController = new ViewDeckSamples.MultiBottomController();

            var centerController = new ViewDeckSamples.MultiTopController();

            var secondDeckController = new ViewDeckController(leftController, bottomController);
            secondDeckController.LeftLedge = 100;
            
            var deckController = new ViewDeckController(centerController, secondDeckController);
            deckController.LeftLedge = 30;
            
            this.PresentViewController(deckController, true, null);
        }