Table of Contents

Interface IDataValidationPlugin

Namespace
Avalonia.Data.Core.Plugins
Assembly
Avalonia.Base.dll

Defines how data validation is observed by an BindingExpression.

public interface IDataValidationPlugin

Methods

Match(WeakReference<object?>, string)

Checks whether this plugin can handle data validation on the specified object.

bool Match(WeakReference<object?> reference, string memberName)

Parameters

reference WeakReference<object>

A weak reference to the object.

memberName string

The name of the member to validate.

Returns

bool

True if the plugin can handle the object; otherwise false.

Start(WeakReference<object?>, string, IPropertyAccessor)

Starts monitoring the data validation state of a property on an object.

IPropertyAccessor Start(WeakReference<object?> reference, string propertyName, IPropertyAccessor inner)

Parameters

reference WeakReference<object>

A weak reference to the object.

propertyName string

The property name.

inner IPropertyAccessor

The inner property accessor used to access the property.

Returns

IPropertyAccessor

An IPropertyAccessor interface through which future interactions with the property will be made.