O'Reilly logo

MCTS: Microsoft Silverlight 4 Development (70-506) Certification Guide by Johnny Tordgeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing data validation

In a perfect world, every user that uses our forms would enter the exact right data at the right places. In such a world, data validation would be useless. We aren't living in such world, and so data validation is a concept no form can go without. Whenever you are interacting with the user, you want to make sure that he inputs what you expect him to input and nothing else. Silverlight 4 introduced two new interfaces for validation—IDataErrorInfo and INotifyDataErrorInfo. These two interfaces join the other approach of data validation in Silverlight known as the data binding exception approach, which includes the NotifyOnValidationError, ValidatesOnExceptions, ValidatesOnDataErrors, and ValidatesOnNotifyDataErrors

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required