Skip to main content

Initiate Method

Obsolete.

This API may be removed in Avalonia 12. If you depend on this API, please open an issue with details of your use-case.

Initiates the binding on a target object.

Definition

Namespace: Avalonia.Data
Assembly: Avalonia.Markup (in Avalonia.Markup.dll)

[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.")]
public abstract InstancedBinding? Initiate(
AvaloniaObject target,
AvaloniaProperty? targetProperty,
Object? anchor = null,
bool enableDataValidation = false
)
View Source

Parameters

  AvaloniaObject
The target instance.
  AvaloniaProperty
The target property. May be null.
  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.
  Boolean  (Optional)
Whether data validation should be enabled.

Return Value

InstancedBinding
A InstancedBinding or null if the binding could not be resolved.

Implements

IBinding.Initiate(AvaloniaObject, AvaloniaProperty, Object, Boolean)

See Also

Reference

BindingBase Class
Avalonia.Data Namespace