If you ever tried WPF (and Silverlight had the same issue) and had any kind of error in your binding, you know that it just fail silently. Of course you get a warning in your Output window but are you always looking there to see if something went wrong? I don't!
After I lost some time yesterday digging for an error that was finally only a typo in a command name, I started looking around for an easier way of debugging binding errors.
I found one that just shows a message box on the screen whenever a binding error occurs. In fact, it is just a listener filtering only for binding events.
So far, I have to say that I rather have a message box showing me that I mistyped the command name rather than searching for almost an hour.
This little gem can be downloaded from http://tech.pro/tutorial/940/wpf-snippet-detecting-binding-errors
|