title: How to detect property changes in items contained in ObservableCollection<T>
body: <pre><code> private ObservableCollection&lt;Employee&gt; models = new ObservableCollection&lt;Employee&gt;();
  </code></pre>
  
  <p>My model has 2 fields (<code>Name</code> and a boolean field called <code>activeDuty</code>)</p>
  
  <p>In my constructor, I </p>
  
  <pre><code> this.models.CollectionChanged += this.OnCollectionChanged;
  
  
  void OnCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
  void OnItemPropertyChanged(object sender, PropertyChangedEventArgs e)
  </code></pre>
  
  <p>I've never used an ObservableCollection, could someone tell me how I would detect if the activeDuty field was modified?(I did some digging and saw many posts about OnCollectionChanged and OnItemPropertyChanged but didnt understand the difference or why one is preferred over another</p>