Thumbnail View Resource
Source

http://www.codeproject.com/favicon.ico www.codeproject.com (The Code Project), posted 2010-08-06

Added By

Avatar BillHenn on 2010-08-10

Vitals
0score
  • 5443 total views
Summary
Shows how to validate user input in a WPF MVVM Application using the IDataErrorInfo Interface.
Excerpt
"When writing data-centric apps, validating user input becomes an important design consideration. One of the most important considerations is when to validate the input. Do you validate the input only after the user has tried to save the data, or do you validate as the user is busy entering the data. Personally, I believe that it is better to validate as the user is busy entering the data, before the user tries to submit it. Luckily for us, the .NET Framework comes with an Interface for just such situations, the IDataErrorInfo Interface. By implementing this interface in your models, combined with WPF data binding, user input validation becomes automatic, and implementing validation becomes merely a choice of how to present the validation errors to the user."
Full Link

http://www.codeproject.com/kb/cs/idataerrorinfovalidation.aspx

About The Code Project

The Code Project is a community of software development and design developers joined together with certain common goals: to learn, to teach and to have fun programming. Developers from all over the world come together to share source code, tutorials and knowledge for free to help their fellow programmers. It is extremely popular and is one of the best places on the web to look for open source implementations of .NET control, components, and techniques. http://www.codeproject.com/

The WPFpedia resource guide has 238 total links to this site.

Comments 

There aren't any comments yet for this resource. Be the first to add one!

Add a Comment

Please log in to post comments.

Tags

Tasks

Thumbnail Screenshots by Thumbshots