Table of Contents

Class IndeiValidationPlugin

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

Validates properties on objects that implement INotifyDataErrorInfo.

public class IndeiValidationPlugin : IDataValidationPlugin
Inheritance
IndeiValidationPlugin
Implements
Inherited Members

Constructors

IndeiValidationPlugin()

public IndeiValidationPlugin()

Methods

Match(WeakReference<object?>, string)

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

public 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.

public IPropertyAccessor Start(WeakReference<object?> reference, string name, IPropertyAccessor accessor)

Parameters

reference WeakReference<object>

A weak reference to the object.

name string
accessor IPropertyAccessor

Returns

IPropertyAccessor

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