public UniqueTransition SetInteractionController(ITransitionInteractionController interactionController, Type fromViewController, TransitionAction action)
 {
     return(SetInteractionController(
                interactionController,
                fromViewController == null ? null : new ObjCRuntime.Class(fromViewController),
                null,
                action));
 }
 public UniqueTransition SetInteractionController <TFrom> (ITransitionInteractionController interactionController, TransitionAction action)
     where TFrom : UIViewController
 {
     return(SetInteractionController(
                interactionController,
                new ObjCRuntime.Class(typeof(TFrom)),
                null,
                action));
 }
Exemple #3
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Create the push and pop interaction controller that allows a custom gesture
            // to control pushing and popping from the navigation controller
            pushPopInteractionController = new HorizontalInteractionController();
            pushPopInteractionController.NextViewControllerDelegate = this;
            pushPopInteractionController.AttachViewController(this, TransitionAction.PushPop);
            TransitionsManager.Shared.SetInteractionController <SimpleViewController> (
                pushPopInteractionController,
                TransitionAction.PushPop);

            // Create the presentation interaction controller that allows a custom gesture
            // to control presenting a new VC via a presentViewController
            presentInteractionController = new VerticalSwipeInteractionController();
            presentInteractionController.NextViewControllerDelegate = this;
            presentInteractionController.AttachViewController(this, TransitionAction.Present);

            pinchInteractionController = new PinchInteractionController();
            pinchInteractionController.NextViewControllerDelegate = this;
            pinchInteractionController.AttachViewController(this, TransitionAction.Present);

            // Setup the push & pop animations as well as a special animation for pushing a
            // RZSimpleCollectionViewController
            TransitionsManager.Shared.SetAnimationController <SimpleViewController> (
                new CardSlideAnimationController(),
                TransitionAction.PushPop);
//			TransitionsManager.Shared.SetAnimationController (new ZoomPushAnimationController (),
//				this.Class,
//				toViewController:[RZSimpleCollectionViewController class]
//				TransitionAction.PushPop);

            // Setup the animations for presenting and dismissing a new VC
            TransitionsManager.Shared.SetAnimationController <SimpleViewController> (
                new CirclePushAnimationController(),
                TransitionAction.PresentDismiss);
        }
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			// Create the push and pop interaction controller that allows a custom gesture
			// to control pushing and popping from the navigation controller
			pushPopInteractionController = new HorizontalInteractionController ();
			pushPopInteractionController.NextViewControllerDelegate = this;
			pushPopInteractionController.AttachViewController (this, TransitionAction.PushPop);
			TransitionsManager.Shared.SetInteractionController<SimpleViewController> (
				pushPopInteractionController,
				TransitionAction.PushPop);

			// Create the presentation interaction controller that allows a custom gesture
			// to control presenting a new VC via a presentViewController
			presentInteractionController = new VerticalSwipeInteractionController ();
			presentInteractionController.NextViewControllerDelegate = this;
			presentInteractionController.AttachViewController (this, TransitionAction.Present);

			pinchInteractionController = new PinchInteractionController ();
			pinchInteractionController.NextViewControllerDelegate = this;
			pinchInteractionController.AttachViewController (this, TransitionAction.Present);

			// Setup the push & pop animations as well as a special animation for pushing a
			// RZSimpleCollectionViewController
			TransitionsManager.Shared.SetAnimationController<SimpleViewController> (
				new CardSlideAnimationController (),
				TransitionAction.PushPop);
//			TransitionsManager.Shared.SetAnimationController (new ZoomPushAnimationController (),
//				this.Class,
//				toViewController:[RZSimpleCollectionViewController class]
//				TransitionAction.PushPop);

			// Setup the animations for presenting and dismissing a new VC
			TransitionsManager.Shared.SetAnimationController<SimpleViewController> (
				new CirclePushAnimationController (),
				TransitionAction.PresentDismiss);
		}
Exemple #5
0
 public virtual UIViewController NextViewController(ITransitionInteractionController interactor)
 {
     return(NextSimpleViewController());
 }
		public virtual UIViewController NextViewController (ITransitionInteractionController interactor)
		{
			return NextSimpleViewController ();
		}