I am building a WPF 4.0 Application using MVVM. The Model is generated using Entity Framework 4.0.
I am using Data binding on the WPF to bind the user input to model properties.
What is the easiest way to validate user input ?
I prefer an approach where I can set the validation rules on the Model rather than on the WPF itself. How can this be done? Any samples are appreciated.
The BookLibrary sample application of the WPF Application Framework (WAF) project shows a MVVM application. It uses the Entity Framework and defines the validation rules on the Model (Entity) classes.