Peter
Peter

Reputation: 38455

WPF event property changed?

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

Upvotes: 2

Views: 5983

Answers (3)

John Myczek
John Myczek

Reputation: 12256

INotifyPropertyChanged. Here is a "How To".

Upvotes: 4

Sergiu Damian
Sergiu Damian

Reputation: 1428

WPF controls inherit DependencyObject class. See: MSDN

For business entities, you could still implement INotifyPropertyChanged.

Upvotes: 4

Sorskoot
Sorskoot

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

Related Questions