Skip to main content

AvaloniaProperty<TValue> Class

Definition

Namespace:Avalonia
Assembly:Avalonia.Base
Package:Avalonia

A typed avalonia property.

public class AvaloniaProperty<TValue>

Inheritance: object -> AvaloniaProperty -> AvaloniaProperty<TValue>

Methods

NameDescription
BindReturns a binding accessor that can be passed to Avalonia.AvaloniaObject's [] operator to initiate a binding. Inherited from AvaloniaProperty.
Equals (2 overloads)Inherited from AvaloniaProperty.
GetHashCodeInherited from AvaloniaProperty.
GetMetadata (3 overloads)Inherited from AvaloniaProperty.
IsValidValueChecks whether the value is valid for the property. Inherited from AvaloniaProperty.
RegisterInherited from AvaloniaProperty.
RegisterAttached (2 overloads)Inherited from AvaloniaProperty.
RegisterDirectInherited from AvaloniaProperty.
ToStringGets the string representation of the property. Inherited from AvaloniaProperty.
UnregisterInherited from AvaloniaProperty.

Properties

NameDescription
ChangedGets an observable that is fired when this property changes on any Avalonia.AvaloniaObject instance.
InheritsGets a value indicating whether the property inherits its value. Inherited from AvaloniaProperty.
IsAttachedGets a value indicating whether this is an attached property. Inherited from AvaloniaProperty.
IsDirectGets a value indicating whether this is a direct property. Inherited from AvaloniaProperty.
IsReadOnlyGets a value indicating whether this is a readonly property. Inherited from AvaloniaProperty.
NameGets the name of the property. Inherited from AvaloniaProperty.
OwnerTypeGets the type of the class that registered the property. Inherited from AvaloniaProperty.
PropertyTypeGets the type of the property's value. Inherited from AvaloniaProperty.

Changed Property

Gets an observable that is fired when this property changes on any Avalonia.AvaloniaObject instance.

public IObservable<Avalonia.AvaloniaPropertyChangedEventArgs<T><TValue>> Changed { get; set; }

Value

An observable that is fired when this property changes on any Avalonia.AvaloniaObject instance.

Fields

NameDescription
UnsetValueRepresents an unset property value. Inherited from AvaloniaProperty.