Exemple #1
0
 public WaterfallCollectionSource(WaterfallCollectionView collectionView)
 {
     // Initialize
     CollectionView = collectionView;
     CollectionView.RegisterClassForCell(typeof(TextCollectionViewCell), TextCollectionViewCell.Key);
     // Init numbers collection
     for (int n = 0; n < 100; ++n)
     {
         Numbers.Add(n);
     }
 }
        public ListNativeTest()
        {
            var flowLayout = new UICollectionViewFlowLayout()
            {
                ItemSize = new CGSize((float)UIScreen.MainScreen.Bounds.Size.Width - 20.0f, 50.0f),
            };
            var uICollectionView = new CGRect(0, 0, (int)UIScreen.MainScreen.Bounds.Size.Width, (int)UIScreen.MainScreen.Bounds.Size.Height);

            Waterfall            = new WaterfallCollectionView(uICollectionView, flowLayout);
            Waterfall.DataSource = new WaterfallCollectionSource(Waterfall);
            Waterfall.Delegate   = new WaterfallCollectionDelegate(Waterfall);

            AddSubview(Waterfall);
        }
Exemple #3
0
 public WaterfallCollectionDelegate(WaterfallCollectionView collectionView)
 {
     // Initialize
     CollectionView = collectionView;
 }