StyledPropertyTValueAddOwnerTOwner Method

Registers the property on another type.

Definition

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

Parameters

metadata  StyledPropertyMetadataTValue  (Optional)
 

Type Parameters

TOwner
The type of the additional owner.

Return Value

StyledPropertyTValue
The property.

See Also