Skip to Main Content
Silverlight 5 in Action
book

Silverlight 5 in Action

by Pete Brown
June 2012
Beginner content levelBeginner
1000 pages
33h 35m
English
Manning Publications
Content preview from Silverlight 5 in Action

Chapter 18. Input validation

 

This chapter covers
  • Validating properties in code using exceptions
  • Using IDataErrorInfo and INotifyDataErrorInfo for validation
  • Controlling DataGrid and DataForm validation through attributes

 

The previous two chapters covered the binding system and some of its important uses within Silverlight. The binding system is also so important because of the input validation approaches in Silverlight built directly on it.

Validation is something almost every nontrivial application with a TextBox will need to do at some point. Often, you punt and do simple checking in the code-behind. But if you want to truly leverage binding, take advantage of patterns such as the ViewModel pattern, and have better structure to your ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Silverlight 4 in Action

Silverlight 4 in Action

Pete Brown

Publisher Resources

ISBN: 9781617290312Publisher SupportOtherPublisher WebsitePurchase Link