public override void ItemSelected (UICollectionView collectionView, NSIndexPath indexPath)
		{
			// UseLayoutToLayoutNavigationTransitions when item is selected

			circleLayout = new CircleLayout (monkeys.Count) { ItemSize = new CGSize (100, 100) };
			controller2 = new ImagesCollectionViewController (circleLayout);
			controller2.UseLayoutToLayoutNavigationTransitions = true;

			NavigationController.PushViewController (controller2, true);
		}
Beispiel #2
0
        public override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            // UseLayoutToLayoutNavigationTransitions when item is selected

            circleLayout = new CircleLayout(monkeys.Count)
            {
                ItemSize = new CGSize(100, 100)
            };
            controller2 = new ImagesCollectionViewController(circleLayout);
            controller2.UseLayoutToLayoutNavigationTransitions = true;

            NavigationController.PushViewController(controller2, true);
        }
		// This method is invoked when the application has loaded and is ready to run. In this 
		// method you should instantiate the window, load the UI into it and then make the window
		// visible.
		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			window = new UIWindow (UIScreen.MainScreen.Bounds);

			// create and initialize a UICollectionViewFlowLayout
			layout = new UICollectionViewFlowLayout (){
				SectionInset = new UIEdgeInsets (10,5,10,5),
				MinimumInteritemSpacing = 5,
				MinimumLineSpacing = 5,
				ItemSize = new CGSize (100, 100)
			};

			viewController = new ImagesCollectionViewController (layout);
			viewController.UseLayoutToLayoutNavigationTransitions = false;

			navController = new UINavigationController (viewController);

			window.RootViewController = navController;
			window.MakeKeyAndVisible ();
			
			return true;
		}
Beispiel #4
0
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            window = new UIWindow(UIScreen.MainScreen.Bounds);

            // create and initialize a UICollectionViewFlowLayout
            layout = new UICollectionViewFlowLayout()
            {
                SectionInset            = new UIEdgeInsets(10, 5, 10, 5),
                MinimumInteritemSpacing = 5,
                MinimumLineSpacing      = 5,
                ItemSize = new CGSize(100, 100)
            };

            viewController = new ImagesCollectionViewController(layout);
            viewController.UseLayoutToLayoutNavigationTransitions = false;

            navController = new UINavigationController(viewController);

            window.RootViewController = navController;
            window.MakeKeyAndVisible();

            return(true);
        }