Notify Property Changed on a Dictionary

前端 未结 5 1834
余生分开走
余生分开走 2020-12-09 23:11

I have a WPF / XAML form data-bound to a property in a dictionary, similar to this:


<

5条回答
  •  再見小時候
    2020-12-09 23:40

    One way to get around this would probably be to encapsulate a dictionary, then you can implement notifying interfaces and control the access to the dictionary, i.e. if someone uses the brackets to set a value you can set the value of the internal dictionary and raise the notification.

提交回复
热议问题