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

Adding INotifyDataErrorInfo Support to the ValidationSummary Control

Now that you have looked at the INotifyDataErrorInfo interface and at the inner workings of the custom validation system, let us examine how the ValidationSummary control has been extended to support the INotifyDataErrorInfo interface.

As you saw in the previous section, the ValidationSummary control monitors its data context for validation errors if the data context implements INotifyDataErrorInfo. When the INotifyDataErrorInfo.ErrorsChanged event is raised by the data context, the control’s HandleErrorsChanged handler is called (see Listing 26.5).

ValidationSummary maintains a dictionary of validation errors, which are keyed by the associated property name. The HandleErrorsChanged ...

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