示例#1
0
        public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var view = (TCellView)collectionView.DequeueReusableCell(cellIdentifier, indexPath);

            this.source.PrepareCell(indexPath.ToIndex(), view);
            return(view);
        }
示例#2
0
        public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            var view = tableView.DequeueReusableCell(cellIdentifier, indexPath);

            this.source.PrepareCell(indexPath.ToIndex(), (TCellView)view);
            return(view);
        }
示例#3
0
 public override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath) => this.source?.Select(indexPath.ToIndex());
示例#4
0
 public override nfloat GetHeightForRow(UITableView tableView, NSIndexPath indexPath) => this.heightForItem(indexPath.ToIndex());
示例#5
0
 public override void RowSelected(UITableView tableView, NSIndexPath indexPath) => this.source?.Select(indexPath.ToIndex());