Interface IValidatable
Interface for UI fields that can be validated using ValidationRule, ValidationScope, and ValidationContext
public interface IValidatable
Properties
HasValue
Indicates whether the validatable field has a value set
bool HasValue { get; }
Property Value
ValidationResults
The results of the latest triggered validation(s) for the field
ValidationResults ValidationResults { get; }
Property Value
Methods
CanParse()
Indicates whether the validatable field has a value that can be parsed
bool CanParse()
Returns
RequiresValidation()
Marks the field as pending validation
void RequiresValidation()
Remarks
The field will be responsible for calling validation at the correct time in its rendering pipeline
ValidateAsync()
Task<bool> ValidateAsync()