Have a bunch of ObservableCollection<MeClass> Result and require to combine them all into another ObservableCollection<MeClass> AllResults so I can display it in a listview.
Just not sure how to combine them all in one.
I Created a new class to combine them all but not sure how they will get updated after I got the list once… So not really sure which direction to take.
I know about INotifyPropertyChanged I’m just not sure how to combine them all and keep updating as everything changes.
.NET has a
CompositeCollectionthat allows you to treat multiple collections as a single collection. It implementsINotifyCollectionChanged, so as long as your inner collections implementINotifyCollectionChangedas well (which in your case they certainly do), your bindings should work without any problems.Usage example: