Skip to main content

AddOwner<TOwner> Method

Registers the property on another type.

Definition​

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

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

Parameters​

  StyledPropertyMetadata(TValue)  (Optional)
 

Type Parameters​

The type of the additional owner.

Return Value​

StyledProperty(TValue)
The property.

See Also​

Reference​

StyledProperty(TValue) Class
Avalonia Namespace