Click or drag to resize

LessThanAttributeOnValidateAsync 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.ReflectionPropertyInfo
The property that invoked the validation
context
Type: Cauldron.XAML.ViewModelsIValidatableViewModel
The Viewmodel context that has to be validated
propertyInfo
Type: System.ReflectionPropertyInfo
The PropertyInfo of the validated property
value
Type: SystemObject
The value of the property

Return Value

Type: TaskBoolean
Has to return true on validation error otherwise false
See Also