Validation Summary In Silverlight 3

Download Source


We have already explored about the Validation Summary for displaying error messages set by Data Annotation. In this article we will see how we can do custom error messages if required.

Creating Silverlight Project

Fire up Visual Studio 2008 and create a new Silverlight 3 Project. Name it as ValidationSummarySample.

Here is the basic idea about this application; we would have different controls other than TextBoxes. As Textboxes have the Validation Summary Animation.

The following code describes how to use Validation Summary to display custom errors.



Custom Validation Summary Items can be added based on the condition we need to apply in our application.


Now run the application and find the custom messages for the particular Control associated in the condition check.



Hope this article helps.