Click here to Skip to main content
15,749,203 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

Can anybody send me good links about different error handling techniques in WPF ??
(WPF Error Handling using ValidationRule, ExceptionValidationRule, DataErrorValidationRule)

Please send links if you have..
Updated 14-Mar-11 2:23am
Sandeep Mewara 14-Mar-11 7:44am    
Did you try by yourself? Google?
Tarun.K.S 14-Mar-11 8:26am    
Edit: Added WPF tag.

IDataErrorInfo is the best approach for validation considering the fact that you are using the powerful data binding feature of WPF.

I have explained this in my blog which will explain how to use IDataErrorInfo interface and also included a CustomValidationRule to create your own validation rule.

Here it is :[^]

You can also have a look at Paul Stovell's post right here at CodeProject which discusses the same thing[^]

Hope it helped! :)
Share this answer
Sergey Alexandrovich Kryukov 14-Mar-11 16:00pm    
Very useful links and samples, my 5.
Pleased to look at your Web site. The idea is and functionality is good, but I would have serious notes about design and readability: it is pressing.
Tarun.K.S 15-Mar-11 2:16am    
Thank you very much SA! Glad you liked it. About the design, i should change the background of my blog right?
Sergey Alexandrovich Kryukov 15-Mar-11 2:40am    
May be. Background is very heavy. It needs design work. I don't want to discourage you, but the rule of thumb is light background. Also, fixed width is evil, most of the screen width is wasted. I know, "everyone does that", but this is not an excuse. I think we can better talk off-line...
Tarun.K.S 15-Mar-11 3:06am    
You are very right SA. I shall right away change the theme of my blog which can have more width too. Thanks again for the pointers! :)
Tarun.K.S 15-Mar-11 4:27am    
Hi i have changed the background, you might want to have a look at it.
Hope this[^] might help you.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900