2

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

3 Answers 3

7

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 { }; 
Sign up to request clarification or add additional context in comments.

Comments

4

WPF controls inherit DependencyObject class. See: MSDN

For business entities, you could still implement INotifyPropertyChanged.

Comments

4

INotifyPropertyChanged. Here is a "How To".

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.