Esempio n. 1
0
        // TODO Uno specific: ensure the items are updated for ItemsSource change as Items are not yet in sync with ItemsSource properly

        internal override void OnItemsSourceSingleCollectionChanged(object sender, NotifyCollectionChangedEventArgs args, int section)
        {
            base.OnItemsSourceSingleCollectionChanged(sender, args, section);

            var tabView = SharedHelpers.GetAncestorOfType <TabView>(VisualTreeHelper.GetParent(this));

            if (tabView != null)
            {
                var internalTabView   = tabView;
                var vectorChangedArgs = args.ToVectorChangedEventArgs();
                internalTabView.OnItemsChanged(vectorChangedArgs);
            }
        }
 private void OnSourceCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     VectorChanged?.Invoke(this as IObservableVector <object>, e.ToVectorChangedEventArgs());
 }