I’m working on WPF based application. Environment is VS2008 SP1 with .NET 3.5 SP 1. In our development we are using MVVM pattern widely.
I.e. application developers write Models and ViewModels (C#), then UI developers will write Views using WPF Binding (XAML). Application developers also write unit tests on top of ViewModels. We are using Continuous Integration methodology and we are diond build and executing unit test on each modification
The problem is a lack of process or tools of data binding correctness validation in XAML. For example:
- App developer writes property NmberOfApples and unit tests to check its correct behavior
- UI developer creates user control and bind it to the property
- App developer finds that property has misspelling and fix its name to NumberOfApples
- It would be compilation time errors in any C# code uses NmberOfApples property, and such errors will be easy to catch (Continuous Integration)
- Data binding in XAML files are not going to be validated and it will be run time error
My question will be “Is there any tool or methodology that help us validate data binding correctness in XAML in compile time?”