IPropertyBindingHook
trait · ferroui-reactiveui · v0.5.0
trait IPropertyBindingHook
Intercepts the bindings as they are created, to run an action or to cancel the binding
(IPropertyBindingHook).
A hook is registered in AppLocator as dyn IPropertyBindingHook and consulted through
BindingHooks.
Members
execute_hook
fn execute_hook(self: &Self, source: Option<&Rc<dyn Any>>, target: &Rc<dyn Any>, get_current_view_model_properties: &dyn Fn() -> BindingHookChanges, get_current_view_properties: &dyn Fn() -> BindingHookChanges, direction: BindingDirection) -> bool
Called as a binding is set up, before it is wired; returns true to let the binding
proceed and false to cancel it (ExecuteHook).
source is the view model (None when there is none), target the view (not the
control); get_current_view_model_properties and get_current_view_properties read the
current values along each path when called.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.