public override UITableViewCell GetCell(UITableView tv)
        {
            var cell = tv.DequeueReusableCell(NewsCellView.Key) as NewsCellView ?? NewsCellView.Create();

            cell.Set(_imageUri, _time, _actionImage, _attributedHeader, _attributedBody, _headerLinks, _bodyLinks, WebLinkClicked, _multilined);
            return(cell);
        }
        public override UITableViewCell GetCell(UITableView tv)
        {
            var cell = tv.DequeueReusableCell(NewsCellView.Key) as NewsCellView ?? NewsCellView.Create();

            return(cell);
        }
Exemple #3
0
 public EventTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <EventItemViewModel> collection)
     : base(tableView, collection, NewsCellView.Key, 100f)
 {
     _cache = new TableViewCellHeightCache <NewsCellView, EventItemViewModel>(100f, () => NewsCellView.Create(true));
     tableView.SeparatorInset = NewsCellView.EdgeInsets;
     tableView.RegisterNibForCellReuse(NewsCellView.Nib, NewsCellView.Key);
 }