void RemoveEvents(TableRoot tableRoot) { if (tableRoot == null) { return; } tableRoot.CollectionChanged -= _parent.CollectionChanged; tableRoot.SectionCollectionChanged -= _parent.OnSectionCollectionChanged; }
public TableView(TableRoot root) { VerticalOptions = HorizontalOptions = LayoutOptions.FillAndExpand; Model = _tableModel = new TableSectionModel(this, root); _platformConfigurationRegistry = new Lazy <PlatformConfigurationRegistry <TableView> >(() => new PlatformConfigurationRegistry <TableView>(this)); }
public TableSectionModel(TableView tableParent, TableRoot tableRoot) { _parent = tableParent; Root = tableRoot ?? new TableRoot(); }
void ApplyEvents(TableRoot tableRoot) { tableRoot.CollectionChanged += _parent.CollectionChanged; tableRoot.SectionCollectionChanged += _parent.OnSectionCollectionChanged; }
public TableView(TableRoot root) { VerticalOptions = HorizontalOptions = LayoutOptions.FillAndExpand; Model = _tableModel = new TableSectionModel(this, root); }