Table of Contents

Class ValidationRule

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

ValidationRule is a member of ValidationRules Collection. ValidationRulesCollection is a collection of ValidationRule instances on either a Binding or a MultiBinding. Each of the ValidationRules' Validate is checked for validity on update

public abstract class ValidationRule
Inheritance
ValidationRule
Derived

Constructors

ValidationRule()

Initialize a new instance of ValidationRule.

ValidationRule(ValidationStep, bool)

Initialize a new instance of ValidationRule with the given validation step and target-update behavior.

Properties

ValidatesOnTargetUpdated

When true, the validation rule is also called during source-to-target data transfer. This allows invalid data in the source to be highlighted as soon as it appears in the UI, without waiting for the user to edit it.

ValidationStep

The step at which the rule should be called.

Methods

Validate(object, CultureInfo)

Validate is called when Data binding is updating

Validate(object, CultureInfo, BindingExpressionBase)

Performs validation checks on a value.

Validate(object, CultureInfo, BindingGroup)

Performs validation checks on a value.