private void DataSource_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { models = DataSource.Select(x => new TabOption() { IsClosable = IsClosable?.Invoke(x), IsDisabled = IsDisabled?.Invoke(x), Name = Name(x), Title = Title(x), Content = Content(x) }).ToList(); TabContainer.Refresh(); }