views:

19

answers:

1

Is this a true statement?

the Set accessor never gets called unless someone sets the .Net property in procedural code. When setting the property in XAML, data binding to it, and so on, WPF calls SetValue directly

(or may be is an old statement)

Thanks

+2  A: 

That is true, yes. If you want to do something when a property is changed, use the OnPropertyChanged event:

http://msdn.microsoft.com/en-us/library/system.windows.dependencyobject.onpropertychanged.aspx

Kieren Johnstone
thanks for the link
ramnz