Skip to main content

AddOwner<TOwner> Method

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

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)

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

Parameters

  StyledPropertyMetadata(TValue)  (Optional)
 

Type Parameters

The owner type.

Return Value

AttachedProperty(TValue)
The property.

See Also

Reference

AttachedProperty(TValue) Class
Avalonia Namespace