O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

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

Asynchronous and Composite Validation

Present since the Windows Phone 7.1 SDK is the INotifyDataErrorInfo interface, which is also present in Silverlight 4. This new API eliminates the need to rely on exceptions to indicate invalid property values. In addition, implementing INotifyDataErrorInfo makes it possible to evaluate the validity of a property on a secondary thread.

The INotifyDataErrorInfo interface contains three is used to determine whether the control contains validation errors. The GetErrors method returns all errors that are detected, and the ErrorsChanged event notifies listeners when an error has been added or removed from the set of known errors.

FIGURE 26.10 INotifyDataErrorInfo interface is used to monitor input validation ...

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