Pages

Men

rh

7/21/2012

Explain how objects can notify the UI of changes in WPF

Explain how objects can notify the UI of changes.
There are three methods

Implement INotifyPropertyChanged and raise an event every time the property changes
Implement the property as a DependencyProperty (which automatically handle change notification)

Create an event named after the property named MyPropertyChanged.  WPF automatically searches for this event if an object does not impliment INotifyPropertyChanged or DependencyProperty

No comments :

Post a Comment