mardi 31 mars 2015

Test DataBinding PropertyPaths

I would like to somehow ensure, that all my bindings in xaml binds to existing property.


Every view has specified type of datacontext using d:DesignInstance and every DataTemplate uses DataType attribute if it cannot be inherited from context (e.g ListBoxItem template).


In visual studio xaml designer, invalid properties are underlined and at runtime I get binding errors in output window.


is there any tool, that could check those errors? I was thinking about some automated UI test, that would go trough entire application and check debug output, but it's quite hard to setup.


if visual studio can parse xaml and identify invalid bindings, at least theoretically it should be possible to do it in unit tests.


Aucun commentaire:

Enregistrer un commentaire