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.

Labels:

4 Comments:

Blogger 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

7:37 AM  
Blogger 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

5:46 AM  
Anonymous 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

1:43 AM  
Anonymous 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

5:50 AM  

Post a Comment

<< Home