This is a mirror of official site: http://jasper-net.blogspot.com/

Silverlight basics. Validation. Part 1. DataAnnotations & ValidatesOnExceptions

| Sunday, November 28, 2010
Silverlight 4 has some new ways for validate input values (some new approaches to implement validation in your application). First approach is DataAnnotation. In this case you should describe validation rules with attributes. Two other ways (both of them is came with Silverlight 4) – you should implement one of interfaces for your ViewModel: IDataErrorInfo or INotifyDataErrorInfo. I want to talk about all of these approaches, about pros and cons of using each of them. Goal of this article to get a best way to implement validation of input values in my and your applications. This part of article about DataAnnotations.

Background

I have example. I want to describe all of these approaches on simple control “change password”.

Capture_1F726807.png

Read more: outcoldman

Posted via email from .NET Info

0 comments: