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.
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.