StyledPropertyTValueAddOwnerTOwner Method
Registers the property on another type.
Namespace: AvaloniaAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public StyledProperty<TValue> AddOwner<TOwner>(
StyledPropertyMetadata<TValue>? metadata = null
)
where TOwner : AvaloniaObject
Public Function AddOwner(Of TOwner As AvaloniaObject) (
Optional metadata As StyledPropertyMetadata(Of TValue) = Nothing
) As StyledProperty(Of TValue)
member AddOwner :
?metadata : StyledPropertyMetadata<'TValue>
(* Defaults:
let _metadata = defaultArg metadata null
*)
-> StyledProperty<'TValue> when 'TOwner : AvaloniaObject
- metadata StyledPropertyMetadataTValue (Optional)
-
- TOwner
- The type of the additional owner.
StyledPropertyTValueThe property.