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

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..
Thanks..
Posted
Updated 14-Mar-11 2:23am
v3
Comments
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 : http://tarundotnet.wordpress.com/2011/03/03/wpf-tutorial-how-to-use-idataerrorinfo-in-wpf/[^]

You can also have a look at Paul Stovell's post right here at CodeProject which discusses the same thing http://www.codeproject.com/KB/WPF/wpfvalidation.aspx[^]

Hope it helped! :)
 
Share this answer
 
v3
Comments
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.
--SA
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...
--SA
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