Specifies when a ValidationRule runs.
Assembly: PresentationFramework (in PresentationFramework.dll)
The following example uses a ValidationRule named ValidateDateAndPrice. The ValidationStep for this rule is set to so that when it runs, the Validate method has access to values that are of the source property's type.
When the PriceIsAPositiveNumber and FutureDateRule rules run, the values in each Validate method are strings because the default value of ValidationStep is . Therefore, the rules run before the values are converted to their respective types.
The following example shows the ValidateDateAndPriceValidationRule. In the Validate method, the Price property is of type Double and the OfferExpires property is of type DateTime. The strings have been converted to their respective types by the time the ValidationRule runs.
Available since 3.0