Skip to main content

DataValidationBase Class

Base class for data validators.

Definition

Namespace: Avalonia.Data.Core.Plugins
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public abstract class DataValidationBase : PropertyAccessorBase, 
IObserver<Object>
View Source
InheritanceObjectPropertyAccessorBase → DataValidationBase
ImplementsIObserver(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

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

Properties

PropertyTypeGets the type of the property.
(Overrides PropertyAccessorBase.PropertyType)
ValueGets the current value of the property.
(Overrides PropertyAccessorBase.Value)

Methods

Dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from PropertyAccessorBase)
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
InnerValueChanged(Object)Called when the inner IPropertyAccessor notifies with a new value.
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
PublishValue(Object)Publishes a value to the listener.
(Inherited from PropertyAccessorBase)
SetValue(Object, BindingPriority)Sets the property value.
(Overrides PropertyAccessorBase.SetValue(Object, BindingPriority))
Subscribe(Action(Object))Subscribes to the value of the member.
(Inherited from PropertyAccessorBase)
SubscribeCore()Begins listening to the inner IPropertyAccessor.
(Overrides PropertyAccessorBase.SubscribeCore())
ToString()Returns a string that represents the current object.
(Inherited from Object)
Unsubscribe()
(Inherited from PropertyAccessorBase)
UnsubscribeCore()When overridden in a derived class, stops listening to the member.
(Overrides PropertyAccessorBase.UnsubscribeCore())

See Also

Reference

Avalonia.Data.Core.Plugins Namespace