0

Whenever I am doing XAML, I tend to run into problems with databinding. It is often small issues, such as misspelling a property name.

My problem is, that I don't seem to receive any errors or warnings when I am trying to bind to a property that does not exist. It would be nice to get a warning, either at compile or runtime, about my errors.

Is it possible to get a warning about wrong databinding expressions ? What do you do to troubleshoot when your data does not appear as expected ?

driis
  • 161,458
  • 45
  • 265
  • 341
  • 2
    possible duplicate of [How to detect broken WPF Data binding?](http://stackoverflow.com/questions/337023/how-to-detect-broken-wpf-data-binding) – Gishu Oct 09 '10 at 18:00

2 Answers2

3

WPF will write warnings about problems in data binding to the Visual Studio "Output" window

Nir
  • 29,306
  • 10
  • 67
  • 103
1

This blog post, How can I debug WPF bindings? helped me learn why my Binding was failing.

I've accepted the other answer to this question because it is technically correct, but I wanted to include the link above in this question, for future reference.

driis
  • 161,458
  • 45
  • 265
  • 341