Reputation: 38455
What interface must i implement to be able to create wpf event when some thing changes?
Upvotes: 2
Views: 5983
Reputation: 1428
WPF controls inherit DependencyObject class. See: MSDN
For business entities, you could still implement INotifyPropertyChanged.
Upvotes: 4
Reputation: 10310
INotifyPropertyChanged.
It's in System.ComponentModel
A small trick when using this interface, when you implement it with an empty delegate you don't have to check if the event is null every time you raise it.
public event PropertyChangedEventHandler PropertyChanged = delegate { };
Upvotes: 7