public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
        {
            if (indexPath.Section == 0)
            {
                SellArticleButtonViewCell cell = collectionView.DequeueReusableCell(SellArticleButtonViewCell.Key, indexPath) as SellArticleButtonViewCell ?? SellArticleButtonViewCell.Create();
                cell.AdjustIconAspect();

                return(cell);
            }
            else
            {
                ProductViewCell cell = collectionView.DequeueReusableCell(ProductViewCell.Key, indexPath) as ProductViewCell ?? ProductViewCell.Create();

                cell.Bind(Items.ElementAt(indexPath.Row));

                return(cell);
            }
        }
Esempio n. 2
0
        public static ProductViewCell Create()
        {
            ProductViewCell cell = (ProductViewCell)Nib.Instantiate(null, null)[0];

            return(cell);
        }