Validation scenarios in Silverlight 4

4,291 views

Published on

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.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
4,291
On SlideShare
0
From Embeds
0
Number of Embeds
47
Actions
Shares
0
Downloads
33
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Validation scenarios in Silverlight 4

  1. 1. VALIDATION SCENARIOS IN SILVERLIGHT 4 University of Southern California, Los Angeles October 24th, 2010Rajmund Rzepecki Version 1.1
  2. 2. First, how binding works in WPF/SL?
  3. 3. Can we define our own invalid states?
  4. 4. Controls supporting validation states
  5. 5. How all this communicates?
  6. 6. Sequence diagram for the whole cycleAlexander Junghttp://ajdotnet.wordpress.com/2010/02/28/understanding-validation-in-silverlight/
  7. 7. Demo and examplesIt is totally hands on from now on. We are going to deepdive into code.I have studied and selected the finest examples fromthe 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. 8. Useful links Silverlight Validation in Detailhttp://silverlightfeeds.com/post/571/Silverlight_Validation_in_Detail.aspx Data Validation in Silverlight 4http://www.packtpub.com/article/data-validation-in-silverlight-4 Silverlight 4 Rough Notes: Binding and IDataErrorInfohttp://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 INotifyDataErrorInfohttp://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 INotifyDataErrorInfohttp://weblogs.asp.net/fredriknormen/archive/2009/11/22/silverlight-4-and- asynchronous-validation-with-inotifydataerrorinfo.aspx
  9. 9. Useful links (more) Understanding Validation in Silverlighthttp://ajdotnet.wordpress.com/2010/02/28/understanding-validation-in- silverlight/ Silverlight Data Validationhttp://www.devproconnections.com/article/silverlight-development/Silverlight- Data-Validation.aspx Validation Summary In Silverlight 3http://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 1http://www.codeproject.com/Articles/86955/Silverlight-4-Data-Validation-Tip- of-the-Day-Part-.aspx
  10. 10. Useful links (even more) Silverlight 3 Validation Workaroundhttp://blog.andrew-veresov.com/post/Silverlight-3-Validation-Workaround.aspx Silverlight – About validation when binding to custom formshttp://weblogs.asp.net/fredriknormen/archive/2010/01/06/silverlight-about- validation-when-binding-to-custom-forms.aspx Force Validation checks on Clickhttp://forums.silverlight.net/forums/p/158594/355142.aspx Silverlight 3: Programmatically Validate Textboxhttp://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.aspxhttp://www.thejoyofcode.com/Silverlight_Validation_and_MVVM_Part_II.aspxhttp://www.thejoyofcode.com/Silverlight_MVVM_and_Validation_Part_III.aspx
  11. 11. Useful links – INotifyDataErrorInfo Enabling Validation in Silverlight 4 with IDataErrorInfohttp://johnpapa.net/silverlight/enabling-validation-in- silverlight-4-with-idataerrorinfo/ Implementing Data Validation in Silverlight with INotifyDataErrorInfohttp://www.silverlight.net/learn/whitepapers/introduci ng-new-inotifydataerrorinfo-interface Silverlight 4 INotifyDataErrorInfohttp://attachedwpf.com/blog/2010/03/24/silverlight-4- inotifydataerrorinfo
  12. 12. Questions? Thanks for coming. Please download from: http://www.slideshare.net/rajmundr/validation- scenarios-in-silverlight-4

×