public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			TransitionButton.TouchUpInside += (object sender, EventArgs e) => {

				#region demo animated controller transition
				SecondViewController vc2 = new SecondViewController {
					ModalTransitionStyle = UIModalTransitionStyle.PartialCurl
				};

				PresentViewController (vc2, true, null);
				#endregion

				#region demo view transition
//				DemoViewTransition vc3 = new DemoViewTransition();
//
//				PresentViewController (vc3, true, null);
				#endregion

				#region demo view animation
//				ViewAnimation vc4 = new ViewAnimation();
//
//				PresentViewController (vc4, true, null);
				#endregion

				#region demo implecit layer animation
//				var vc5 = new ImplicitLayerAnimation();
//
//				PresentViewController (vc5, true, null);
				#endregion

				#region demo explicit layer animation
//				var vc6 = new ExplicitLayerAnimation();
//
//				PresentViewController (vc6, true, null);
				#endregion
			};
		}
예제 #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            TransitionButton.TouchUpInside += (object sender, EventArgs e) => {
                #region demo animated controller transition
                SecondViewController vc2 = new SecondViewController {
                    ModalTransitionStyle = UIModalTransitionStyle.PartialCurl
                };

                PresentViewController(vc2, true, null);
                #endregion

                #region demo view transition
//				DemoViewTransition vc3 = new DemoViewTransition();
//
//				PresentViewController (vc3, true, null);
                #endregion

                #region demo view animation
//				ViewAnimation vc4 = new ViewAnimation();
//
//				PresentViewController (vc4, true, null);
                #endregion

                #region demo implecit layer animation
//				var vc5 = new ImplicitLayerAnimation();
//
//				PresentViewController (vc5, true, null);
                #endregion

                #region demo explicit layer animation
//				var vc6 = new ExplicitLayerAnimation();
//
//				PresentViewController (vc6, true, null);
                #endregion
            };
        }
예제 #3
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.

            TransitionButton.TouchUpInside += (object sender, EventArgs e) => {
                SecondViewController vc2 = (SecondViewController)Storyboard.InstantiateViewController("SecondViewController");

                vc2.ModalTransitionStyle = UIModalTransitionStyle.PartialCurl;

                PresentViewController(vc2, true, null);
            };

            ViewTransitionButton.TouchUpInside += (object sender, EventArgs e) => {
                DemoViewTransition vc3 = new DemoViewTransition();

                PresentViewController(vc3, true, null);
            };

            ViewAnimationButton.TouchUpInside += (object sender, EventArgs e) => {
                ViewPropertyAnimation vc4 = new ViewPropertyAnimation();

                PresentViewController(vc4, true, null);
            };

            ImplicitButton.TouchUpInside += (object sender, EventArgs e) => {
                ImplicitLayerAnimation vc5 = new ImplicitLayerAnimation();

                PresentViewController(vc5, true, null);
            };

            ExplicitButton.TouchUpInside += (object sender, EventArgs e) => {
                ExplicitLayerAnimation vc6 = new ExplicitLayerAnimation();

                PresentViewController(vc6, true, null);
            };
        }