SelectedObjects from PropertyGrid should subscribe to INotifyCollectionChanged #22
KokeBlacksmith
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On binding a collection to DataContext of the property grid, It only get updated on changing the property value, but not on collection changes like Clear, Add, Remove, etc..
So the ViewModel
PropertyGridViewModel.cs
could check if the new value is aINotifyCollectionChanged
and subscribe to changes as follows:This way, changes on a collection will be shown in the property grid as well.
Beta Was this translation helpful? Give feedback.
All reactions