Skip to main content

ExecuteHook Method

Called when any binding is set up.

Definition

Namespace: Avalonia.ReactiveUI
Assembly: Avalonia.ReactiveUI (in Avalonia.ReactiveUI.dll)

public bool ExecuteHook(
Object? source,
Object target,
Func<IObservedChange<Object, Object>[]> getCurrentViewModelProperties,
Func<IObservedChange<Object, Object>[]> getCurrentViewProperties,
BindingDirection direction
)

Parameters

  Object
The source ViewModel.
  Object
The target View (not the actual control).
  Func(IObservedChange(Object, Object)[])
Get current view model properties.
  Func(IObservedChange(Object, Object)[])
Get current view properties.
  BindingDirection
The Binding direction.

Return Value

Boolean
If false, the binding is cancelled.

Implements

IPropertyBindingHook.ExecuteHook(Object, Object, Func(IObservedChange(Object, Object)[]), Func(IObservedChange(Object, Object)[]), BindingDirection)

See Also

Reference

AutoDataTemplateBindingHook Class
Avalonia.ReactiveUI Namespace