I had a variable which was not static and INotifyPropertyChanged implemented succesfully. Then I tried to make it global, so turned it a static variable. But this time, INotifyPropertyChanged does not work. Any solution?
I had a variable which was not static and INotifyPropertyChanged implemented succesfully. Then I
Share
INotifyPropertyChangedworks on instance properties. One solution is to use a singleton pattern and keepINotifyPropertyChanged, the other is to use your own event to notify listeners.Singleton example
EDIT: In WPF 4.5, they introduced property changed mechanic for static properties: