inotifypropertychanged - Where is implementation of PropertyChanged EventHandler? -


I'm a little confused I do not understand exactly when code is executed when I implemented the INotifyPropertyChanged interface I do As I have imagined, the series happens in this way:

  • My class impliments INotifyPropertyChanged =>
  • Setter Call for Every Property - NotifyPropertyChanged method =>
  • PropertyChangedEventHandler
    invokes => ???

And I wonder what makes the code rerender my control Thank you.

This will subscribe to events when it is controlled when you increase this incidence, the control will check that The property that has been changed is one of those people who care about it. If so, it will bring new value to the property, and will re-submit itself.

Of course, handler control does not to do with rerendering - they can do anything. It's just a way to say, "Hey, property X has changed his mind ... if you care about it, do something." You can add your own handler very easily, like any other event handlers.


Comments