Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
            void RemoveEvents(TableRoot tableRoot)
            {
                if (tableRoot == null)
                {
                    return;
                }

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