1

How does binding work under the hood in WPF and Silverlight?

I have implemented INotifyPropertyChanged on my ViewModel objects and also used dependency properties on UI controls. Now, I am aware of the fact that the binding system will subscribe to PropertyChanged event and will update the UI whenever it is notified of changes in property. I want to know the internal working details of both approaches - implementing INotifyPropertyChanged and inheriting from Dependency object.

Sandbox
  • 7,910
  • 11
  • 53
  • 67
  • Not really sure what you are asking. Your sentence "I am aware of the fact that the binding system will subscribe to PropertyChanged event and will update the UI whenever it is notified of changes in property." basically describes all of the magic. Things that are *bindable* are DependencyProps on DependencyObjects. Things that you bind *to* are on class that implemented INotifyPropertyChanged. – RationalGeek Dec 20 '10 at 12:39
  • Why not use a disassembler (such as .Net Reflector or JetBrains dotPeek) and see for yourself? – Benjamin Gale Mar 07 '13 at 12:31

0 Answers0