Skip to content

Applies to

net10.0, net9.0, net8.0

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

View source

Inherited documentation

These docs were inherited from IPropertyBindingHook. The member doesn't override them on this type.

Summary: Called as a binding is set up, before it is wired, and can refuse the binding.

Parameters

NameTypeDescription
sourceobject?The source ViewModel; may be null.
targetobjectThe target View (not the actual control).
getCurrentViewModelPropertiesFunc[]>Reads the current values along the view model property path when called.
getCurrentViewPropertiesFunc[]>Reads the current values along the view property path when called.
directionBindingDirectionThe Binding direction.

Returns: bool -- true to let the binding proceed; false to cancel it.