public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath) { var view = (TCellView)collectionView.DequeueReusableCell(cellIdentifier, indexPath); this.source.PrepareCell(indexPath.ToIndex(), view); return(view); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { var view = tableView.DequeueReusableCell(cellIdentifier, indexPath); this.source.PrepareCell(indexPath.ToIndex(), (TCellView)view); return(view); }
public override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath) => this.source?.Select(indexPath.ToIndex());
public override nfloat GetHeightForRow(UITableView tableView, NSIndexPath indexPath) => this.heightForItem(indexPath.ToIndex());
public override void RowSelected(UITableView tableView, NSIndexPath indexPath) => this.source?.Select(indexPath.ToIndex());