Let's go over important changes made in version 4 without using any framework, just plain Silverlight. See how validation has been made easier and more manageable. I will demonstrate some custom scenarios and problems not covered anywhere.
6. Sequence diagram for the whole cycle
Alexander Jung
http://ajdotnet.wordpress.com/2010/02/28/understanding-validation-in-silverlight/
7. Demo and examples
It is totally hands on from now on. We are going to deep
dive into code.
I have studied and selected the finest examples from
the web discussing validation issues and solutions for them.
Don’t worry about remembering or taking notes,
I will give you links to all topics presented at the end.
Remember, most principles also apply to WPF.
8. Useful links
Silverlight Validation in Detail
http://silverlightfeeds.com/post/571/Silverlight_Validation_in_Detail.aspx
Data Validation in Silverlight 4
http://www.packtpub.com/article/data-validation-in-silverlight-4
Silverlight 4 Rough Notes: Binding and IDataErrorInfo
http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/
silverlight-4-rough-notes-binding-and-idataerrorinfo.aspx
Silverlight 4 Rough Notes: Binding with INotifyDataErrorInfo
http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/
silverlight-4-rough-notes-binding-with-inotifydataerrorinfo.aspx
Silverlight 4 and Asynchronous Validation with INotifyDataErrorInfo
http://weblogs.asp.net/fredriknormen/archive/2009/11/22/silverlight-4-and-
asynchronous-validation-with-inotifydataerrorinfo.aspx
9. Useful links (more)
Understanding Validation in Silverlight
http://ajdotnet.wordpress.com/2010/02/28/understanding-validation-in-
silverlight/
Silverlight Data Validation
http://www.devproconnections.com/article/silverlight-development/Silverlight-
Data-Validation.aspx
Validation Summary In Silverlight 3
http://dpatra.blogspot.com/2010/04/validation-summary-in-silverlight-3.html
How to manually validate an object and have the results automatically added to
a ValidationSummary?
http://forums.silverlight.net/forums/t/111830.aspx
Silverlight 4 : Data Validation - Tip of the Day - Part 1
http://www.codeproject.com/Articles/86955/Silverlight-4-Data-Validation-Tip-
of-the-Day-Part-.aspx
10. Useful links (even more)
Silverlight 3 Validation Workaround
http://blog.andrew-veresov.com/post/Silverlight-3-Validation-Workaround.aspx
Silverlight – About validation when binding to custom forms
http://weblogs.asp.net/fredriknormen/archive/2010/01/06/silverlight-about-
validation-when-binding-to-custom-forms.aspx
Force Validation checks on Click
http://forums.silverlight.net/forums/p/158594/355142.aspx
Silverlight 3: Programmatically Validate Textbox
http://dotnetstep.blogspot.com/2010/01/silverlight-3-programmatically-
validate.html
Silverlight, MVVM and Validation (Part I-III)
http://www.thejoyofcode.com/Silverlight_Validation_and_ViewModel.aspx
http://www.thejoyofcode.com/Silverlight_Validation_and_MVVM_Part_II.aspx
http://www.thejoyofcode.com/Silverlight_MVVM_and_Validation_Part_III.aspx
11. Useful links – INotifyDataErrorInfo
Enabling Validation in Silverlight 4 with
IDataErrorInfo
http://johnpapa.net/silverlight/enabling-validation-in-
silverlight-4-with-idataerrorinfo/
Implementing Data Validation in Silverlight with
INotifyDataErrorInfo
http://www.silverlight.net/learn/whitepapers/introduci
ng-new-inotifydataerrorinfo-interface
Silverlight 4 INotifyDataErrorInfo
http://attachedwpf.com/blog/2010/03/24/silverlight-4-
inotifydataerrorinfo