Here I am trying to provide step wise approach of implementing validations using IDataErrorInfo interface. Steps to be carried out in ViewModel and Model classes: Add reference to System.ComponentModel namespace. Implement IDataErrorInfo interface in ViewModel and Model classes Create sub routine for checking validations on Fields in ViewModel and Model classes Sample Code in ViewModel class: Steps to be following in XAML: Set the ValidatesOnDataErrors property true for all the data entry controls. ......
The Model-View-ViewModel pattern is similar to the Model-View-Presenter, except you have a model tailor-made for the View, called the ViewModel. The ViewModel contains all the UI-specific interfaces and properties necessary to make it easy to develop a user interface. The View binds to the ViewModel, and executes commands to request an action from it. The ViewModel, in turn, communicates with the Model, and tells it to update in response to user interaction. Model-View-ViewModel Example A model that ......
With Microsoft Expression Blend 4, you can create websites and applications based on Microsoft Silverlight 3 and Microsoft Silverlight 4, and desktop applications based on Windows Presentation Foundation (WPF) 3.5 with Service Pack 1 (SP1) and WPF4. Expression Blend provides new support for prototyping, interactivity through behaviors, special Silverlight functionality, and on-the-fly sample data generation. Expression Blend includes new behaviors that are quickly and easily configured Expression ......