AvaloniaProperty Class

Base class for avalonia properties.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public abstract class AvaloniaProperty : IEquatable<AvaloniaProperty>, 
	IPropertyInfo
Inheritance
Object    AvaloniaProperty
Derived
Implements
IPropertyInfo, IEquatableAvaloniaProperty

Properties

Changed Gets an observable that is fired when this property changes on any AvaloniaObject instance.
Inherits Gets a value indicating whether the property inherits its value.
IsAttached Gets a value indicating whether this is an attached property.
IsDirect Gets a value indicating whether this is a direct property.
IsReadOnly Gets a value indicating whether this is a readonly property.
Name Gets the name of the property.
OwnerType Gets the type of the class that registered the property.
PropertyType Gets 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 ObjectEquals(Object))
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Overrides ObjectGetHashCode)
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.
GetMetadataT Gets the AvaloniaPropertyMetadata which applies to this property when it is used with the specified type.
GetTypeGets the Type of the current instance.
(Inherited from Object)
IsValidValue(Object) Checks whether the value is valid for the property.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
RegisterTOwner, TValue(String, TValue, Boolean, BindingMode, FuncTValue, Boolean, FuncAvaloniaObject, TValue, TValue, Boolean) Registers a AvaloniaProperty.
RegisterAttachedTHost, TValue(String, Type, TValue, Boolean, BindingMode, FuncTValue, Boolean, FuncAvaloniaObject, TValue, TValue) Registers an attached AvaloniaProperty.
RegisterAttachedTOwner, THost, TValue(String, TValue, Boolean, BindingMode, FuncTValue, Boolean, FuncAvaloniaObject, TValue, TValue) Registers an attached AvaloniaProperty.
RegisterDirectTOwner, TValue(String, FuncTOwner, TValue, ActionTOwner, TValue, TValue, BindingMode, Boolean) Registers a direct AvaloniaProperty.
ToString Gets the string representation of the property.
(Overrides ObjectToString)
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

UnsetValue Represents an unset property value.

See Also