Skip to content

Applies to

net11.0-windows10.0.19041, net11.0-windows10.0.19041, net10.0-windows10.0.19041, net481

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

View source (opens in a new tab)

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? (opens in a new tab)The source ViewModel; may be null.
targetobject (opens in a new tab)The target View (not the actual control).
getCurrentViewModelPropertiesFunc[]> (opens in a new tab)Reads the current values along the view model property path when called.
getCurrentViewPropertiesFunc[]> (opens in a new tab)Reads the current values along the view property path when called.
directionBindingDirectionThe Binding direction.

Returns: bool (opens in a new tab) -- true to let the binding proceed; false to cancel it.