public override bool FinishedLaunching(UIApplication app, NSDictionary options) { window = new UIWindow (UIScreen.MainScreen.Bounds); // Flow Layout flowLayout = new UICollectionViewFlowLayout (){ HeaderReferenceSize = new System.Drawing.SizeF (100, 100), SectionInset = new UIEdgeInsets (20,20,20,20), ScrollDirection = UICollectionViewScrollDirection.Vertical, MinimumInteritemSpacing = 50, // minimum spacing between cells MinimumLineSpacing = 50 // minimum spacing between rows if ScrollDirection is Vertical or between columns if Horizontal }; // Line Layout lineLayout = new LineLayout (){ HeaderReferenceSize = new System.Drawing.SizeF (160, 100), ScrollDirection = UICollectionViewScrollDirection.Horizontal }; // Circle Layout circleLayout = new CircleLayout (); simpleCollectionViewController = new SimpleCollectionViewController (flowLayout); // simpleCollectionViewController = new SimpleCollectionViewController (lineLayout); // simpleCollectionViewController = new SimpleCollectionViewController (circleLayout); simpleCollectionViewController.CollectionView.ContentInset = new UIEdgeInsets (50, 0, 0, 0); window.RootViewController = simpleCollectionViewController; window.MakeKeyAndVisible (); return true; }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { window = new UIWindow(UIScreen.MainScreen.Bounds); // Flow Layout flowLayout = new UICollectionViewFlowLayout() { HeaderReferenceSize = new System.Drawing.SizeF(100, 100), SectionInset = new UIEdgeInsets(20, 20, 20, 20), ScrollDirection = UICollectionViewScrollDirection.Vertical }; // Line Layout lineLayout = new LineLayout() { HeaderReferenceSize = new System.Drawing.SizeF(160, 100), ScrollDirection = UICollectionViewScrollDirection.Horizontal }; // Circle Layout circleLayout = new CircleLayout(); simpleCollectionViewController = new SimpleCollectionViewController(flowLayout); // simpleCollectionViewController = new SimpleCollectionViewController (lineLayout); // simpleCollectionViewController = new SimpleCollectionViewController (circleLayout); simpleCollectionViewController.CollectionView.ContentInset = new UIEdgeInsets(50, 0, 0, 0); window.RootViewController = simpleCollectionViewController; window.MakeKeyAndVisible(); return(true); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { window = new UIWindow(UIScreen.MainScreen.Bounds); // Flow Layout flowLayout = new UICollectionViewFlowLayout() { HeaderReferenceSize = new CGSize(100, 100), SectionInset = new UIEdgeInsets(20, 20, 20, 20), ScrollDirection = UICollectionViewScrollDirection.Vertical, MinimumInteritemSpacing = 50, // minimum spacing between cells MinimumLineSpacing = 50 // minimum spacing between rows if ScrollDirection is Vertical or between columns if Horizontal }; // Line Layout lineLayout = new LineLayout() { HeaderReferenceSize = new CGSize(160, 100), ScrollDirection = UICollectionViewScrollDirection.Horizontal }; // Circle Layout circleLayout = new CircleLayout(); simpleCollectionViewController = new SimpleCollectionViewController(flowLayout); // simpleCollectionViewController = new SimpleCollectionViewController (lineLayout); // simpleCollectionViewController = new SimpleCollectionViewController (circleLayout); simpleCollectionViewController.CollectionView.ContentInset = new UIEdgeInsets(50, 0, 0, 0); window.RootViewController = simpleCollectionViewController; window.MakeKeyAndVisible(); return(true); }