CSLA & WPF MVVM: ValidationRules in ViewModel

CSLA framework provide validation rules mechanism via Business Rules.

How we can bring csla validation rules in MVVM viewmodel ?
Just implement IDataErrorInfo in viewmodel, and link to broken rule collection. 🙂

Thanks to EnricoG for his wonderfull solution.

here is a sample: Using a ViewModel to Provide Meaningful Validation Error Messages

Technorati tags: WPF, MVVM, CSLA, Validation, IDataErrorInfo
Advertisements

Tags: ,


%d bloggers like this: