views:

489

answers:

1

To my understanding, binding errors are displayed only during debug mode in Visual Studio's Output window. However, I want to know about broken bindings when the user runs my app, and I want to notify him that something is not working quite right.

Is there a way to handle binding exceptions from code, when the datacontext is set, and some bindings are broken?

A: 

Hi Sandor, Take a look at this MSDN entry for data binding: http://msdn.microsoft.com/en-us/library/cc278072(VS.95).aspx

It has a section on Data Validation which should be helpful to you.

Also, this blog post would probably be of interest to you.

KeithMahoney