AvaloniaProperty Class
Base class for avalonia properties.
Definition
Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public abstract class AvaloniaProperty : IEquatable<AvaloniaProperty>,
IPropertyInfo
Public MustInherit Class AvaloniaProperty
Implements IEquatable(Of AvaloniaProperty), IPropertyInfo
[<AbstractClassAttribute>]
type AvaloniaProperty =
class
interface IEquatable<AvaloniaProperty>
interface IPropertyInfo
end
Inheritance | Object → AvaloniaProperty |
Derived | Avalonia.AvaloniaProperty(TValue) |
Implements | IPropertyInfo, IEquatable(AvaloniaProperty) |
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 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
UnsetValue | Represents an unset property value. |