コード例 #1
0
 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);
 }
コード例 #2
0
 public RxSpyObservablesGridViewModel(IReadOnlyReactiveList <RxSpyObservableModel> model)
 {
     Observables = model.CreateDerivedCollection(x => new RxSpyObservableGridItemViewModel(x));
 }
コード例 #3
0
 public RxSpyObservablesGridViewModel(IReadOnlyReactiveList<RxSpyObservableModel> model)
 {
     Observables = model.CreateDerivedCollection(x => new RxSpyObservableGridItemViewModel(x));
 }