How to detect property changes in items contained in ObservableCollection<T> [duplicate]
问题 This question already has answers here : ItemPropertyChanged not working on observableCollection.Why? (2 answers) Closed 3 years ago . private ObservableCollection<Employee> models = new ObservableCollection<Employee>(); My model has 2 fields ( Name and a boolean field called activeDuty ) In my constructor, I this.models.CollectionChanged += this.OnCollectionChanged; void OnCollectionChanged(object sender, NotifyCollectionChangedEventArgs e) void OnItemPropertyChanged(object sender,