Table of Contents

Class DataAnnotationsValidationPlugin

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

Validates properties on that have ValidationAttributes.

public class DataAnnotationsValidationPlugin : IDataValidationPlugin
Inheritance
DataAnnotationsValidationPlugin
Implements
Inherited Members

Constructors

DataAnnotationsValidationPlugin()

public DataAnnotationsValidationPlugin()

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

Parameters

reference WeakReference<object>

A weak reference to the object.

name string
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.