Click or drag to resize

PasswordStrengthAttribute.OnValidateAsync Method

Invokes the validation on the specified context with the specified parameters

Namespace:  Cauldron.XAML.Validation
Assembly:  Cauldron.Win32.WPF (in Cauldron.Win32.WPF.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
protected override Task<bool> OnValidateAsync(
	PropertyInfo sender,
	IValidatableViewModel context,
	PropertyInfo propertyInfo,
	Object value
)

Parameters

sender
Type: System.Reflection.PropertyInfo
The property that invoked the validation
context
Type: Cauldron.XAML.ViewModels.IValidatableViewModel
The Viewmodel context that has to be validated
propertyInfo
Type: System.Reflection.PropertyInfo
The PropertyInfo of the validated property
value
Type: System.Object
The value of the property

Return Value

Type: Task<Boolean>
Has to return true on validation error otherwise false
See Also