Skip to main content

IPropertyAccessor Interface

Definition

Assembly:Avalonia.Base
Package:Avalonia

Defines an accessor to a property on an object.

public interface IPropertyAccessor

Implements: IDisposable

Methods

NameDescription
SetValueSets the property value.
SubscribeNo summary available.
UnsubscribeUnsubscribes 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

NameDescription
PropertyTypeGets the type of the property.
ValueGets 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; }