-
Book Overview & Buying
-
Table Of Contents
MVVM Survival Guide for Enterprise Architectures in Silverlight and WPF
Inherit ValidationRule
and override Validate().
Instantiate and add to the Binding.ValidationRules collection.
Use the ValidationStep property to control when it should be applied. The possible values are ConvertedProposedValue, CommittedValue, RawProposedValue, and UpdatedValue.
Used for sync validation where only single validation result suffices. Implemented by View Model. Apply ValidatesOnDataErrors or DataErrorValidationRule for binding.
Used for sync/async validation when more than one validation result is available. Implemented by View Model. Apply ValidatesOnNotifyDataErrors or NotifyDataErrorValidationRule for binding.
Supports defining validation rules by using attributes, configuration, and self-validation which can also be consolidated
Used for more complex sync/async business rules validations
Used to specify the template when control value fails validation
Change the font size
Change margin width
Change background colour