Summary
Base class for data validators.
- Namespace
- Avalonia
.Data .Core .Plugins - Interfaces
-
- IPropertyAccessor
- IDisposable
- IObserver
<object>
- Base Types
-
- object
- PropertyAccessorBase
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
IPropertyAccessor
s that are returned from an
IDataValidationPlugin
. They wrap an inner IPropertyAccessor
and convert any values received from the inner property accessor into
BindingNotification
s.
Constructors
Name | Summary |
---|---|
DataValidationBase |
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 |
void |
Called when the inner
IPropertyAccessor notifies with a new value.
|
PublishValue |
void |
Publishes a value to the listener.
Inherited from PropertyAccessorBase
|
SetValue |
bool |
Sets the property value.
|
Subscribe |
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.
|