Summary

This chapter began by defining the two types of input validation: syntactic and semantic. Syntactic validation ensures that user input has the correct format and can be converted to the correct type, whereas semantic validation may entail more complex validation, such as the evaluation of business rules.

This chapter then looked at the Silverlight 3 property setter validation system, which is included in the Windows Phone SDK. You saw how this system relies on the raising of exceptions to indicate validation errors. Noncritical exceptions raised in property setters produce binding errors, which signal validation errors.

You saw how Windows Phone requires custom templates for enabling visualization of input validation errors, and you ...

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.