Skip to main content

AvaloniaProperty Class

Base class for avalonia properties.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public abstract class AvaloniaProperty : IEquatable<AvaloniaProperty>, 
IPropertyInfo
View Source
InheritanceObject → AvaloniaProperty
DerivedAvalonia.AvaloniaProperty(TValue)
ImplementsIPropertyInfo, IEquatable(AvaloniaProperty)

Properties

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

Methods

Bind()Returns a binding accessor that can be passed to AvaloniaObject's [] operator to initiate a binding.
Equals(AvaloniaProperty)Indicates whether the current object is equal to another object of the same type.
Equals(Object)Determines whether the specified object is equal to the current object.
(Overrides Object.Equals(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.
(Overrides Object.GetHashCode())
GetMetadata(AvaloniaObject)Gets the AvaloniaPropertyMetadata which applies to this property when it is used with the specified object.
GetMetadata(Type)Gets the AvaloniaPropertyMetadata which applies to this property when it is used with the specified type.
GetMetadata(T)()Gets the AvaloniaPropertyMetadata which applies to this property when it is used with the specified type.
GetType()Gets the Type of the current instance.
(Inherited from Object)
IsValidValue(Object)Checks whether the value is valid for the property.
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
Register(TOwner, TValue)(String, TValue, Boolean, BindingMode, Func(TValue, Boolean), Func(AvaloniaObject, TValue, TValue), Boolean)Registers a AvaloniaProperty.
RegisterAttached(THost, TValue)(String, Type, TValue, Boolean, BindingMode, Func(TValue, Boolean), Func(AvaloniaObject, TValue, TValue))Registers an attached AvaloniaProperty.
RegisterAttached(TOwner, THost, TValue)(String, TValue, Boolean, BindingMode, Func(TValue, Boolean), Func(AvaloniaObject, TValue, TValue))Registers an attached AvaloniaProperty.
RegisterDirect(TOwner, TValue)(String, Func(TOwner, TValue), Action(TOwner, TValue), TValue, BindingMode, Boolean)Registers a direct AvaloniaProperty.
ToString()Gets the string representation of the property.
(Overrides Object.ToString())
Unregister(Type) 

Operators

Equality(AvaloniaProperty, AvaloniaProperty)Tests two AvaloniaPropertys for equality.
Inequality(AvaloniaProperty, AvaloniaProperty)Tests two AvaloniaPropertys for inequality.
LogicalNot(AvaloniaProperty)Provides access to a property's binding via the AvaloniaObject indexer.
OnesComplement(AvaloniaProperty)Provides access to a property's template binding via the AvaloniaObject indexer.

Fields

UnsetValueRepresents an unset property value.

See Also

Reference

Avalonia Namespace