Пример #1
0
        public override UICollectionViewCell GetCell (UICollectionView collectionView, NSIndexPath indexPath)
        {
            UICollectionViewCell cell = onGetCell (collectionView, indexPath);
            if ((collectionView as GridCollectionView).SelectionEnable) {
                cell.AddGestureRecognizer (new UITapGestureRecognizer ((v) => {
                    this.ItemSelected (collectionView, indexPath);
                }));
            } else
                cell.SelectedBackgroundView = new UIView();

            return cell;
        }