tags:

views:

918

answers:

3

What interface must i implement to be able to create wpf event when some thing changes?

+4  A: 

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 { };
Sorskoot
+3  A: 

WPF controls inherit DependencyObject class. See: MSDN

For business entities, you could still implement INotifyPropertyChanged.

Sergiu Damian
+3  A: 

INotifyPropertyChanged. Here is a "How To".

John Myczek