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

An Example of Asynchronous Input Validation

The downloadable sample code contains a number of examples of asynchronous input validation. The simplest is located in the AsyncValidationViewModel class.

The AsyncValidationView contains two string properties that are required to be non-null or whitespace strings (see Figure 26.12).

Image

FIGURE 26.12 AsyncValidationView page.

When either of the two properties is set to an empty or whitespace string, a data validation error is created for that property. This validation occurs when the user modifies the text or when the Submit button is tapped (see Figure 26.13).

FIGURE 26.13 The Validated String 1 form ...

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