Tuesday, April 24, 2007

WPF integration for validation application block

You can now download the code for the WPF intergration for the validation application block of Enterprise Library 3.0.

Please refer to my previous post for an explanation of what this integration does. The zip archive you can download contains two projects:

The Validation.Integration.WPF project contains the two classes EnterpriseValidationRule and ErrorProvider that you can use in your own projects (under BSD license).

The WPFValidation project can be compiled together with the validation quickstart from the Enterprise Library 3.0. It is the same quickstart sample rewritten for the WPF integration.

Download the code here.

I would like to thank Tom Hollander from Microsoft Patterns and Practices for his encouragement to publish this code.

Let me know if you have any questions or feedback.

Update: I have published an update and answered some questions here.

5 comments:

Giuseppe Zarbo said...

Hi,
I read your post about WPF validation and I try to use it... I have a simple question:
is it possibile to include validators on configuration file instead of tagging the entities with attributes?
Thanks

Giuseppe Zarbo said...

Hi,
I read your post about WPF validation and I try to use it... I have a simple question:
is it possibile to include validators on configuration file instead of tagging the entities with attributes?
Thanks

Anonymous said...

Hi
I have a question regarding localizing the validation messages:
How do we localize the validation messages, if we use validators in configuration file
Thanks

Anonymous said...

Hi Martin,
I'm using VS 2008 SP1 and use StringFormat in Binding for formatting the number value
(#,0.##), unfortunately i've got an exception?
and Another problem with PropertyComparison validator

Regards,
Arash

w3c said...

Nice information, I really appreciate the way you presented.Thanks for sharing..

http://www.w3cvalidation.net/