Beispiel #1
0
            void RemoveEvents(TableRoot tableRoot)
            {
                if (tableRoot == null)
                {
                    return;
                }

                tableRoot.CollectionChanged        -= _parent.CollectionChanged;
                tableRoot.SectionCollectionChanged -= _parent.OnSectionCollectionChanged;
            }
Beispiel #2
0
 public TableView(TableRoot root)
 {
     VerticalOptions = HorizontalOptions = LayoutOptions.FillAndExpand;
     Model           = _tableModel = new TableSectionModel(this, root);
     _platformConfigurationRegistry = new Lazy <PlatformConfigurationRegistry <TableView> >(() => new PlatformConfigurationRegistry <TableView>(this));
 }
Beispiel #3
0
 void ApplyEvents(TableRoot tableRoot)
 {
     tableRoot.CollectionChanged        += _parent.CollectionChanged;
     tableRoot.SectionCollectionChanged += _parent.OnSectionCollectionChanged;
 }
Beispiel #4
0
 public TableSectionModel(TableView tableParent, TableRoot tableRoot)
 {
     _parent = tableParent;
     Root    = tableRoot ?? new TableRoot();
 }