public NotificationTableViewSource(UITableView tableView, IReadOnlyReactiveList <NotificationGroupViewModel> collections, Func <bool> canEdit) : base(tableView, UITableView.AutomaticDimension, 64f) { _canEdit = canEdit; tableView.RegisterNibForCellReuse(NotificationTableViewCell.Nib, NotificationTableViewCell.Key); Data = collections.CreateDerivedCollection(x => new TableSectionInformation <NotificationItemViewModel, NotificationTableViewCell>(x.Notifications, NotificationTableViewCell.Key, (float)UITableView.AutomaticDimension) { Header = new TableSectionHeader(x.Name) }, filter: x => x.IsVisible, signalReset: collections.Changed); }
public RxSpyObservablesGridViewModel(IReadOnlyReactiveList <RxSpyObservableModel> model) { Observables = model.CreateDerivedCollection(x => new RxSpyObservableGridItemViewModel(x)); }
public RxSpyObservablesGridViewModel(IReadOnlyReactiveList<RxSpyObservableModel> model) { Observables = model.CreateDerivedCollection(x => new RxSpyObservableGridItemViewModel(x)); }