Table of Contents

Class AttachedProperty<TValue>

Namespace
Avalonia
Assembly
Avalonia.Base.dll

An attached avalonia property.

public sealed class AttachedProperty<TValue> : StyledProperty<TValue>, IEquatable<AvaloniaProperty>, IPropertyInfo

Type Parameters

TValue

The type of the property's value.

Inheritance
AttachedProperty<TValue>
Implements
Inherited Members

Methods

AddOwner<TOwner>(StyledPropertyMetadata<TValue>?)

Attaches the property as a non-attached property on the specified type.

public AttachedProperty<TValue> AddOwner<TOwner>(StyledPropertyMetadata<TValue>? metadata = null) where TOwner : AvaloniaObject

Parameters

metadata StyledPropertyMetadata<TValue>

Returns

AttachedProperty<TValue>

The property.

Type Parameters

TOwner

The owner type.