Example #1
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);
 }
Example #2
0
 public FeedbackTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <FeedbackItemViewModel> collection)
     : base(tableView, collection, FeedbackCellView.Key, 69.0f)
 {
     _cache = new TableViewCellHeightCache <FeedbackCellView, FeedbackItemViewModel>(69.0f, () => FeedbackCellView.Create(true));
     tableView.RegisterNibForCellReuse(FeedbackCellView.Nib, FeedbackCellView.Key);
 }
Example #3
0
 public PullRequestTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <PullRequestItemViewModel> collection)
     : base(tableView, collection, PullRequestCellView.Key, 60.0f)
 {
     _cache = new TableViewCellHeightCache <PullRequestCellView, PullRequestItemViewModel>(60f, PullRequestCellView.Create);
     tableView.RegisterNibForCellReuse(PullRequestCellView.Nib, PullRequestCellView.Key);
 }
 public RepositoryTableViewSource(UITableView tableView)
     : base(tableView, _estimatedHeight)
 {
     _cache = new TableViewCellHeightCache <RepositoryCellView, RepositoryItemViewModel>(_estimatedHeight, RepositoryCellView.Create);
     tableView.RegisterNibForCellReuse(RepositoryCellView.Nib, RepositoryCellView.Key);
 }
 public RepositoryTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <RepositoryItemViewModel> collection)
     : base(tableView, collection, RepositoryCellView.Key, _estimatedHeight)
 {
     _cache = new TableViewCellHeightCache <RepositoryCellView, RepositoryItemViewModel>(_estimatedHeight, RepositoryCellView.Create);
     tableView.RegisterNibForCellReuse(RepositoryCellView.Nib, RepositoryCellView.Key);
 }
 public RepositoryTableViewSource(UITableView tableView)
     : base(tableView, UITableView.AutomaticDimension, _estimatedHeight)
 {
     _cache = new TableViewCellHeightCache <RepositoryCellView, RepositoryItemViewModel>(_estimatedHeight, () => RepositoryCellView.Create(true));
     tableView.RegisterNibForCellReuse(RepositoryCellView.Nib, RepositoryCellView.Key);
 }
 public CommitTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <CommitItemViewModel> collection)
     : base(tableView, collection, CommitCellView.Key, 64.0f)
 {
     _cache = new TableViewCellHeightCache <CommitCellView, CommitItemViewModel>(64f, () => CommitCellView.Create(true));
     tableView.RegisterNibForCellReuse(CommitCellView.Nib, CommitCellView.Key);
 }
Example #8
0
 public GistTableViewSource(UITableView tableView, IReactiveNotifyCollectionChanged <GistItemViewModel> collection)
     : base(tableView, collection, GistCellView.Key, UITableView.AutomaticDimension, 60f)
 {
     _cache = new TableViewCellHeightCache <GistCellView, GistItemViewModel>(60f, () => GistCellView.Create(true));
     tableView.RegisterNibForCellReuse(GistCellView.Nib, GistCellView.Key);
 }