예제 #1
0
 private void AddCollectionEvent(ExtendedTabbedPage tabs)
 {
     if (tabs?.TabItems is ObservableCollection <ITabItem> tabItems)
     {
         tabItems.CollectionChanged += OnCollectionChanged;
     }
 }
예제 #2
0
        private void AddCollectionEvent(ExtendedTabbedPage tabs)
        {
            var tabItems = tabs?.TabItems as ObservableCollection <ITabItem>;

            if (tabItems != null)
            {
                tabItems.CollectionChanged += OnCollectionChanged;
            }
        }