Skip to content

Commit

Permalink
Notify Observers if Element changed with Index[] (dotnet#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 and patilb committed May 31, 2021
1 parent a1a9ae3 commit a03bee7
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 a03bee7

Please sign in to comment.