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);
            }
        }
Beispiel #2
0
        public static SellArticleButtonViewCell Create()
        {
            SellArticleButtonViewCell cell = (SellArticleButtonViewCell)Nib.Instantiate(null, null)[0];

            return(cell);
        }