The Validation Story in Silverlight
Author: Gill Cleeren
Price: $0.99
Formats: PDF, Word, EPUB, MOBI. All source code added to the downloadable package.
Number of pages: 16
Release date: July 2011
This e-book collects the 2 parts of SilverlightShow article series 'The Validation Story in Silverlight', together with source code.
If one feature is important when it comes to building line-of-business applications, it certainly is validation of business rules. At all levels throughout the application, we need to validate that the data that is entered by the users to verify that it meets the requirements. Some basic validation can be done by the database itself, but most (and in many cases, all) data that it trying to make its way to the database should be validated up front in order not to end up with corrupted data within the data store.
..
The validation story in Silverlight up until version 4 was somewhat lacking in features. While Silverlight 3 had some options available, they were not really enough for real-world applications. That changed with Silverlight 4, mainly because of the introduction of 2 new interfaces, namely the IDataErrorInfo and the INotifyDataErrorInfo. The first one may sound familiar as it already exists for WinForms validation. The latter will be helpful in situations where we need to perform calls to the server and return asynchronous validation results.
Contents:
Chapter 1
Overview of the validation options in Silverlight 4
Silverlight 3 validation options
Adding attributes
Custom rules
Summarizing all errors with the ValidationSummary
Summary
Chapter 2
Hello IDataErrorInfo
The INotifyDataErrorInfo interface
Customizing the error display
Summary
About the author:
Gill Cleeren is Microsoft Regional Director (www.theregion.com), Silverlight MVP (former ASP.NET MVP), INETA speaker bureau member and Silverlight Insider. He lives in Belgium where he works as .NET architect at Ordina. Passionate about .NET, he’s always playing with the newest bits. In his role as Regional Director, Gill has given many sessions, webcasts and trainings on new as well as existing technologies, such as Silverlight, ASP.NET and WPF at conferences including TechEd Berlin 2010, TechDays Belgium, DevDays NL, NDC Oslo Norway, SQL Server Saturday Switserland, Spring Conference UK, Silverlight Roadshow in Sweden and others. He’s also the author of many articles in various developer magazines and for SilverlightShow.net (check Gill's articles for SilverlightShow). He organizes the yearly Community Day event in Belgium.
He also leads Visug (www.visug.be), the largest .NET user group in Belgium. Gill recently published his first book: “Silverlight 4 Data and Services Cookbook” (Packt Publishing). You can find his blog at www.snowball.be. Gill tweets from @gillcleeren.
Gill has delivered the following webinars for SilverlightShow (links to recordings):
Blend for Silverlight Developers
Switch or no Switch: Can I Build My Business Apps in LightSwitch?
Switching on the Cloud for Silverlight
Building a Silverlight 4 Application End-to-end
10 things I'm sure you didn't know about Silverlight 4
Let's MEF: overview of the Managed Extensibility Framework in Silverlight 4
Silverlight's Power Features: Data Binding in Action