AttachedPropertyTValueAddOwnerTOwner Method

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

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public AttachedProperty<TValue> AddOwner<TOwner>(
	StyledPropertyMetadata<TValue>? metadata = null
)
where TOwner : AvaloniaObject

Parameters

metadata  StyledPropertyMetadataTValue  (Optional)
 

Type Parameters

TOwner
The owner type.

Return Value

AttachedPropertyTValue
The property.

See Also