Exercise 2 –Binding & Validation Features
The goal of this exercise is to familiarize the student with the new Binding & Validation features in Silverlight 4. Silverlight 4 allows you to change how data is formatted without having to implement and apply an IValueConverter. Additionally, you can decide what to do when binding fails to return data and choose how to validate data more easily.
In the previous exercise, we removed some of the columns displayed in the DataGrid. In order to see the employees' complete information, we'll add a simple form view to the application, which will show the employee's properties for the selected employee in the DataGrid.
You can continue building on your work from Exercise 1. If you had problems with Exercise 1, you can navigate to “EmployeeManager\Source\Ex02\begin” folder and open the “EmployeeManager.sln” to continue.
Task 1 – Binding to Dependency Properties
Task 2 – Using Fallback Values & String formatting
Task 3– Validating with IDataErrorInfo