Tom Smykowski
Tom Smykowski

Reputation: 26089

How to inform binding that property value has changed?

I have a class with a int property called X. I binded it to Left property of a textBox. But when I change my class X value, textBox does not move. What to do to inform binding that my property value has changed so that textBox will move right?

Upvotes: 0

Views: 198

Answers (2)

Mark Seemann
Mark Seemann

Reputation: 233125

Implement INotifyPropertyChanged.

Upvotes: 3

Fernando
Fernando

Reputation: 4028

You should implement the INotifyPropertyChanged interface.

Upvotes: 4

Related Questions