DirectPropertyBase<TValue> Class
Base class for direct properties.
Definition
Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public abstract class DirectPropertyBase<TValue> : AvaloniaProperty<TValue>
Public MustInherit Class DirectPropertyBase(Of TValue)
Inherits AvaloniaProperty(Of TValue)
[<AbstractClassAttribute>]
type DirectPropertyBase<'TValue> =
class
inherit AvaloniaProperty<'TValue>
end
| Inheritance | Object → AvaloniaProperty → AvaloniaProperty(TValue) → DirectPropertyBase(TValue) |
| Derived | Avalonia.DirectProperty(TOwner, TValue) |
Type Parameters
- The type of the property's value.
Remarks
Whereas DirectProperty(TOwner, TValue) is typed on the owner type, this base class provides a non-owner-typed interface to a direct property.
Properties
| Changed | Gets an observable that is fired when this property changes on any AvaloniaObject instance. (Inherited from AvaloniaProperty(TValue)) |
| Inherits | Gets a value indicating whether the property inherits its value. (Inherited from AvaloniaProperty) |
| IsAttached | Gets a value indicating whether this is an attached property. (Inherited from AvaloniaProperty) |
| IsDirect | Gets a value indicating whether this is a direct property. (Inherited from AvaloniaProperty) |
| IsReadOnly | Gets a value indicating whether this is a readonly property. (Inherited from AvaloniaProperty) |
| Name | Gets the name of the property. (Inherited from AvaloniaProperty) |
| Owner | Gets the type that registered the property. |
| OwnerType | Gets the type of the class that registered the property. (Inherited from AvaloniaProperty) |
| PropertyType | Gets the type of the property's value. (Inherited from AvaloniaProperty) |
Methods
| Bind() | Returns a binding accessor that can be passed to AvaloniaObject's [] operator to initiate a binding. (Inherited from AvaloniaProperty) |
| Equals(AvaloniaProperty) | Indicates whether the current object is equal to another object of the same type. (Inherited from AvaloniaProperty) |
| Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from AvaloniaProperty) |
| 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. (Inherited from AvaloniaProperty) |
| 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. (Inherited from AvaloniaProperty) |
| GetType() | Gets the Type of the current instance. (Inherited from Object) |
| GetUnsetValue(AvaloniaObject) | Gets the unset value for the property on the specified object. |
| GetUnsetValue(Type) | Gets the unset value for the property on the specified type. |
| IsValidValue(Object) | Checks whether the value is valid for the property. (Inherited from AvaloniaProperty) |
| MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object) |
| OverrideMetadata(Type, DirectPropertyMetadata(TValue)) | Overrides the metadata for the property on the specified type. |
| OverrideMetadata(T)(DirectPropertyMetadata(TValue)) | Overrides the metadata for the property on the specified type. |
| ToString() | Gets the string representation of the property. (Inherited from AvaloniaProperty) |
| Unregister(Type) | (Inherited from AvaloniaProperty) |