DataValidationBase Class

Summary

Base class for data validators.
Namespace
Avalonia.Data.Core.Plugins
Interfaces
Base Types
graph BT Type-->Base0["PropertyAccessorBase"] click Base0 "/api/Avalonia.Data.Core.Plugins/PropertyAccessorBase" Base0-->Base1["object"] Type-.->Interface0["IPropertyAccessor"] click Interface0 "/api/Avalonia.Data.Core.Plugins/IPropertyAccessor" Type-.->Interface1["IDisposable"] Type-.->Interface2["IObserver<object>"] Type["DataValidationBase"] class Type type-node

Syntax

public abstract class DataValidationBase : PropertyAccessorBase, IPropertyAccessor, IDisposable, 
    IObserver<object>

Remarks

Data validators are IPropertyAccessors that are returned from an IDataValidationPlugin. They wrap an inner IPropertyAccessor and convert any values received from the inner property accessor into BindingNotifications.

Constructors

Name Summary
DataValidationBase(IPropertyAccessor) Initializes a new instance of the DataValidationBase class.

Properties

Name Value Summary
PropertyType Type
Gets the type of the property.
Value object
Gets the current value of the property.

Methods

Name Value Summary
Dispose() void
Inherited from PropertyAccessorBase
InnerValueChanged(object) void
Called when the inner IPropertyAccessor notifies with a new value.
PublishValue(object) void
Publishes a value to the listener.
Inherited from PropertyAccessorBase
SetValue(object, BindingPriority) bool
Sets the property value.
Subscribe(Action<object>) void
Subscribes to the value of the member.
Inherited from PropertyAccessorBase
SubscribeCore() void
Begins listening to the inner IPropertyAccessor.
Unsubscribe() void
Inherited from PropertyAccessorBase
UnsubscribeCore() void
When overridden in a derived class, stops listening to the member.