Validation

Nov 22, 2010 at 9:45 AM
Edited Nov 22, 2010 at 9:59 AM

Hi,

i am new to Caliburn.Micro (CM). please give an example how to do validation of fields.

Thanks

Coordinator
Nov 22, 2010 at 2:25 PM

CM doesn't provide any sort of validation framework out of the box. However, its convention mechanism is built to recognize classes that implement IDataErrorInfo and INotifyDataErrorInfo.  So, conventions for classes that implement one of these interfaces will have validation turned on on the Bindings that are generated. You can change this behavior by replacing ConventionManager.ApplyValidation with your own code, if you wish to plug in a custom validation mechanism.

Nov 22, 2010 at 3:04 PM

Thank U for the kind replay.

Please can you give a small sample code to use the convention mechanism.

Thanks