Implement OnCollectionChanged so that ListBox updates automatically WPF
问题 I have this object wrapper, whose instances I populate the collection with: public class Multimedia : INotifyPropertyChanged { //... constructor //... getters and setters for the properties public void OnCollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { ObservableCollection<Multimedia> objSender = sender as ObservableCollection<Multimedia>; NotifyCollectionChangedAction action = e.Action; } } The collection: public class MultiMediaList : ObservableCollection<Multimedia> {