Freigeben über


Validation Application Block ported to Silverlight

Microsoft Enterprise Library 5.0 Silverlight Integration Pack

Earlier this week, we published a code drop of the Enterprise Library 5.0 Silverlight Integration Pack. It contains:

  • port of the Validation Application Block
  • new pieces of the infrastructure to support XAML-based configuration
  • async configuration loading

Note there is also a conversion tool to facilitate the reuse of your Enterprise Library existing configurations and convert them to XAML. It can be plugged in the config tool via a wizard or you may integrate it in your build process. The conversion tool is still rough and we are iterating on it.

However, the core logic of the Validation block is there. We’ve built a demo and recorded a short screencast to show how you can leverage it. The following scenarios are covered:  

  • Validation using attributes
  • Injecting validation rules based on configuration
  • Cross-field validation via self-validationTransportController demo of VAB for Silverlight
  • Support for implementing IDataErrorInfo

Take a look. Play with the demo. Tell us what you think.