Microsoft has released Silverlight 5 !! A new feature is available in Silverlight 5 and it is XAML Data Binding debugging. For any data driven application with declarative data binding, within XAML, this brand new feature is the significant in various ways.
Silverlight 5 toolkit
Silverlight 5 Developer Runtime
Visual Studio 2010 SP1
The example demonstrated here implements basic XAML data binding. Below we have specified both the scenario when binding is correct and incorrect.
In below example we have given a simple binding for DataGrid.
When Binding is Correct:
Now you can apply a breakpoint to the binding syntax. Once the break point is applied, it hits the breakpoint whenever push and pull is triggered for that control. The below image shows the breakpoint applied within XAML
The information shows up a BindingState object holding complete binding context information of the control. As in the above image, the BindingState value is UpdatingTarget so this way it shows that the binding is pushing data to control.
Going through the debugging information, it shows the complete picture on the nature of data and binding
Now another thing to know is, on TwoWay binding scenario once you change the data, The breakpoint again gets a hit as the binding source is getting updated. And the debug information shows the Binding state as Updating Source status. The breakpoint again gets a hit as the binding source is getting updated. And the debug information shows the Binding state as Updating Source status.
When Binding is Incorrect:
When binding is incorrect you will get the error while debugging the binding.