AttachedPropertyTValueAddOwnerTOwner Method
Attaches the property as a non-attached property on the specified type.
Namespace: AvaloniaAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
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
- metadata StyledPropertyMetadataTValue (Optional)
-
- TOwner
- The owner type.
AttachedPropertyTValueThe property.