IBindingInitiate Method
Note: This API is now obsolete.
Initiates the binding on a target object.
Namespace: Avalonia.DataAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
[ObsoleteAttribute("This API may be removed in Avalonia 12. If you depend on this API, please open an issue with details of your use-case.")]
InstancedBinding? Initiate(
AvaloniaObject target,
AvaloniaProperty? targetProperty,
Object? anchor = null,
bool enableDataValidation = false
)
<ObsoleteAttribute("This API may be removed in Avalonia 12. If you depend on this API, please open an issue with details of your use-case.")>
Function Initiate (
target As AvaloniaObject,
targetProperty As AvaloniaProperty,
Optional anchor As Object = Nothing,
Optional enableDataValidation As Boolean = false
) As InstancedBinding
[<ObsoleteAttribute("This API may be removed in Avalonia 12. If you depend on this API, please open an issue with details of your use-case.")>]
abstract Initiate :
target : AvaloniaObject *
targetProperty : AvaloniaProperty *
?anchor : Object *
?enableDataValidation : bool
(* Defaults:
let _anchor = defaultArg anchor null
let _enableDataValidation = defaultArg enableDataValidation false
*)
-> InstancedBinding
- target AvaloniaObject
- The target instance.
- targetProperty AvaloniaProperty
- The target property. May be null.
- anchor Object (Optional)
-
An optional anchor from which to locate required context. When binding to objects that
are not in the logical tree, certain types of binding need an anchor into the tree in
order to locate named controls or resources. The anchor parameter
can be used to provide this context.
- enableDataValidation Boolean (Optional)
- Whether data validation should be enabled.
InstancedBinding
A
InstancedBinding or null if the binding could not be resolved.