AvaloniaPropertyMetadataEnableDataValidation Property

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

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public bool? EnableDataValidation { get; }

Property Value

NullableBoolean

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