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)
- C#
- VB
- F#
public AttachedProperty<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 AttachedProperty(Of TValue)
member AddOwner :
?metadata : StyledPropertyMetadata<'TValue>
(* Defaults:
let _metadata = defaultArg metadata null
*)
-> AttachedProperty<'TValue> when 'TOwner : AvaloniaObject
Parameters
- StyledPropertyMetadata(TValue) (Optional)
Type Parameters
- The owner type.
Return Value
AttachedProperty(TValue)
The property.