views:

24

answers:

1

I have a static, typed dataset that I am using within my WPF application that all the user controls must bind to.

I want compilation to break if the dataset and the UI are out of sync.

What approach have you found best to accomplish this?

A: 

That's simply not going to happen. Binding exceptions occur at runtime and are not compiler checked for accuracy.

You can get feedback on Binding errors in the debug output, however. See http://stackoverflow.com/questions/978887/why-does-wpf-databinding-swallow-exceptions.

Joel B Fant