Skip to content

Commit

Permalink
Notify Observers if Element changed with Index[] (#4598)
Browse files Browse the repository at this point in the history
Are there any downsides to this? I needed to make this adjustment so that I could properly bind to elements in the Dictionary.
  • Loading branch information
ngoetti authored May 25, 2021
1 parent 5401c13 commit 4a5c63d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ private void NotifyObserversOfChange()
{
collectionHandler?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
propertyHandler?.Invoke(this, new PropertyChangedEventArgs("Count"));
propertyHandler?.Invoke(this, new PropertyChangedEventArgs("Item[]"));
propertyHandler?.Invoke(this, new PropertyChangedEventArgs(nameof(Keys)));
propertyHandler?.Invoke(this, new PropertyChangedEventArgs(nameof(Values)));
}, null);
Expand Down

0 comments on commit 4a5c63d

Please sign in to comment.