Static binding doesn't update when resource changes

后端 未结 2 1576
慢半拍i
慢半拍i 2020-11-27 08:18

I\'d first like to say I\'m very new to Binding.. I\'ve done some things in WPF already but I never used binding because concept is a bit too hard to understand for me right

2条回答
  •  清歌不尽
    2020-11-27 08:56

    To implement reaction on a change, you need to notify about the change. See INotifyPropertyChanged interface. However, you can't use it with a static class. What about a singleton (ideally using some dependency injection container) instead of a static class?

提交回复
热议问题