Table of Contents

Interface IValidatable

Namespace
The.Values
Assembly
Instagile.dll

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

bool

ValidationResults

The results of the latest triggered validation(s) for the field

ValidationResults ValidationResults { get; }

Property Value

ValidationResults

Methods

CanParse()

Indicates whether the validatable field has a value that can be parsed

bool CanParse()

Returns

bool

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()

Returns

Task<bool>