Hi all,
we've been looking into using the Enterprise library Validation Application Block available through MSDN:
http://msdn.microsoft.com/en-us/library/cc309509.aspx
This fits nicely with our code generator as we can declare validation rule sets through Property attributes and the VAB comes with a reasonable set of validators. Now in order to integrate the VAB with WPF it's necessary to use a Decorator that basically presents an ErrorProvider class:
http://www.bennedik.de/2007/04/wpf-integration-for-validation.html
Unfortunately I can't get the ErrorProvider to pick up any errors. Have you any experience with applying the VAB to the PropertyGrid and if so any pointers?
Thanks
Rick
[Modified at 07/15/2009 06:16 AM]
we've been looking into using the Enterprise library Validation Application Block available through MSDN:
http://msdn.microsoft.com/en-us/library/cc309509.aspx
This fits nicely with our code generator as we can declare validation rule sets through Property attributes and the VAB comes with a reasonable set of validators. Now in order to integrate the VAB with WPF it's necessary to use a Decorator that basically presents an ErrorProvider class:
http://www.bennedik.de/2007/04/wpf-integration-for-validation.html
Unfortunately I can't get the ErrorProvider to pick up any errors. Have you any experience with applying the VAB to the PropertyGrid and if so any pointers?
Thanks
Rick
[Modified at 07/15/2009 06:16 AM]