private void AddCollectionEvent(ExtendedTabbedPage tabs) { if (tabs?.TabItems is ObservableCollection <ITabItem> tabItems) { tabItems.CollectionChanged += OnCollectionChanged; } }
private void AddCollectionEvent(ExtendedTabbedPage tabs) { var tabItems = tabs?.TabItems as ObservableCollection <ITabItem>; if (tabItems != null) { tabItems.CollectionChanged += OnCollectionChanged; } }