(X) Hide this Join the upcoming webinar: Deep-DIVE in Silverlight FIVE by Gill Cleeren. August 24, 10 am PDT (check your local time).
Sign up for this session | Full agenda | Watch recordings of past webinars
SilverlightShow most popular article series are now available as offline downloads, packed with source code. Check out our Ebook shelf!
    • Login
    • Join
      • Generate New Image
        By clicking 'Register' you accept the terms of use .
        Login with Facebook

Validating Data in Silverlight 4 Applications – IDataErrorInfo

(0 votes)
0 comments   /   posted by Silverlight Show on Aug 16, 2010
Tags:   validation , silverlight-4 , dan-wahlin
In this post, Dan Wahlin will walk you through the process of using the IDataErrorInfo interface to validate data in Silverlight 4 apps.

Data validation is an important part of any application. If you've written code to validate data in Silverlight applications prior to the release of Silverlight 4, you've probably discovered that there isn't a great way to ensure that data is entered correctly and errors displayed properly by controls. The typical technique used for validating data was to throw exceptions within property setter blocks as data was found to be invalid. Controls bound to a property could be notified of a data validation exception by setting ValidatesOnExceptions to true in the data binding. Although this technique certainly works, there are some new options available in Silverlight 4 that can be used without resorting to throwing exceptions.


Comments

No comments

Add Comment

Login to comment:
  *      *       
Login with Facebook

Latest News

  • Rate the SilverlightShow Ebooks You Purchased
  • Join the Windows Phone UG Aug '11 Meeting. Learn how to design better apps!
  • How to Create a Multi-Column Auto-Complete Drop-down Box in LightSwitch
  • Pay-per-View vs. Pay-per-Click in Mobile Advertising