public TableView(TableRoot root) { #pragma warning disable CS0618 // Type or member is obsolete VerticalOptions = HorizontalOptions = LayoutOptions.FillAndExpand; #pragma warning restore CS0618 // Type or member is obsolete Model = _tableModel = new TableSectionModel(this, root); _platformConfigurationRegistry = new Lazy <PlatformConfigurationRegistry <TableView> >(() => new PlatformConfigurationRegistry <TableView>(this)); }
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)); }
void ApplyEvents(TableRoot tableRoot) { tableRoot.CollectionChanged += _parent.CollectionChanged; tableRoot.SectionCollectionChanged += _parent.OnSectionCollectionChanged; }
public TableSectionModel(TableView tableParent, TableRoot tableRoot) { _parent = tableParent; Root = tableRoot ?? new TableRoot(); }