IPropertyAccessor Interface
Definition
Defines an accessor to a property on an object.
public interface IPropertyAccessor
Methods
| Name | Description |
|---|---|
| SetValue | Sets the property value. |
| Subscribe | No summary available. |
| Unsubscribe | Unsubscribes to the value of the member. |
SetValue Method
Sets the property value.
public bool SetValue(object value, Avalonia.Data.BindingPriority priority)
Parameters
value object
The value to set. Guaranteed to be of a valid type for the property.
priority Avalonia.Data.BindingPriority
The priority with which to set the value.
Returns
bool
True if the property was set; false if the property could not be set.
Subscribe Method
public void Subscribe(Action<object> listener)
Parameters
listener Action<object>
Unsubscribe Method
Unsubscribes to the value of the member.
public void Unsubscribe()
Properties
| Name | Description |
|---|---|
| PropertyType | Gets the type of the property. |
| Value | Gets the current value of the property. |
PropertyType Property
Gets the type of the property.
public Type PropertyType { get; set; }
Exceptions
Value Property
Gets the current value of the property.
public object Value { get; set; }