Compartir a través de


ValidatorRule Class

Validation rule that performs validation of a converted value using the validators associated to the source property of a binding.

Namespace: Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WPF
Assembly: Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WPF (in Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WPF.dll) Version: 6.0.0.0 (6.0.1304.0)

Syntax

public class ValidatorRule : ValidationRule
'Declaration
Public Class ValidatorRule
    Inherits ValidationRule
public ref class ValidatorRule : public ValidationRule

Remarks

A ValidatorRule can be initialized with a BindingExpression from which it can get the source item and the source property to extract the appropriate validators.

This rule is intended to be used on the ConvertedProposedValue step, after the raw value has been converted but before it is applied to the source of the binding.

Inheritance Hierarchy

System.Object
  System.Windows.Controls.ValidationRule
    Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WPF.ValidatorRule

See Also

ValidatorRule Members

Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WPF Namespace