Skip to main content

EnableDataValidation Property

Gets a value indicating whether the property is interested in data validation.

Definition​

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public bool? EnableDataValidation { get; }

Property Value​

Nullable(Boolean)

Remarks​

Data validation is validation performed at the target of a binding, for example in a view model using the INotifyDataErrorInfo interface. Only certain properties on a control (such as a TextBox's Text property) will be interested in receiving data validation messages so this feature must be explicitly enabled by setting this flag.

See Also​

Reference​

AvaloniaPropertyMetadata Class
Avalonia Namespace