Monday, May 19, 2008

WPF integration for VAB update for Enterprise Library 4.0

Patterns and Practices recently published Enterprise Library 4.0 for Visual Studio 2008 and .NET 3.5.

I have updated the WPF integration for the validation application block (VAB) to work with the latest version. It also comes with the following improvements:

  • You can bind to different business objects (i.e. have different data contexts) inside a single ErrorProvider.
  • Value converters on the bindings are now supported.
  • Call Init() on the ErrorProvider if new validators should be added for a dynamic UI.
  • ErrorProvider now has a property ErrorMessages, which contains a list of all errors.

You can download the updated version here:

  • Download version 2.0 for Visual Studio 2008, .NET 3.5 and Enterprise Library 4.0
  • Download version 1.1 for Visual Studio 2005, .NET 3.0 and Enterprise Library 3.0/3.1

You can read my previous posts on the WPF integration for VAB here:

5 Comments:

Anonymous Anonymous said...

Hi, From description it seems like an exciting work. But the sample is not working out of the box. It misses the configuration. Can you repost the complete working project code?

8:16 AM  
Anonymous Anonymous said...

Hi

I am using your 3.5 version
I am getting "Failure to retrieve comparand for key "DataOfBirth" : The property name "DateOfDeath" is not mapped to validators in the naming context..."

this happens when i use the PropertyComaprisonValidaor where I check that the DataOfBirth is later than DateOfDeath

do you have any ideas to resolve this issue

Thanks

3:19 AM  
Blogger Mario said...

Was there a resolution to the PropertyComaprisonValidator issue? I just wanted to check here before I debug the issue.

7:31 AM  
Anonymous Anonymous said...

Hi, thanks for this great solution. I'm having problems with traversing elements which are not in the logical tree - ErrorProvider does not find elements inside data templates because they do not exist in the logical tree. Did you intend to do that?

10:19 PM  
Anonymous Anonymous said...

Hi,

Enterprise Library has some inherent drawbacks in it. So I think for anyone using it, they should consider its limitations as well. i would suggest a research before go a head. A good read can be found
here Drawbacks of regular Caching Application Block

3:28 AM  

Post a Comment

<< Home