AutoDataTemplateBindingHookExecuteHook Method

Called when any binding is set up.

Definition

Namespace: Avalonia.ReactiveUI
Assembly: Avalonia.ReactiveUI (in Avalonia.ReactiveUI.dll) Version: 11.3.999
public bool ExecuteHook(
	Object? source,
	Object target,
	Func<IObservedChange<Object, Object>[]> getCurrentViewModelProperties,
	Func<IObservedChange<Object, Object>[]> getCurrentViewProperties,
	BindingDirection direction
)

Parameters

source  Object
The source ViewModel.
target  Object
The target View (not the actual control).
getCurrentViewModelProperties  FuncIObservedChangeObject, Object
Get current view model properties.
getCurrentViewProperties  FuncIObservedChangeObject, Object
Get current view properties.
direction  BindingDirection
The Binding direction.

Return Value

Boolean
If false, the binding is cancelled.

Implements

IPropertyBindingHook.ExecuteHook(Object, Object, FuncIObservedChangeObject, Object, FuncIObservedChangeObject, Object, BindingDirection)

See Also