[]>
Defined in Type: BindingHooks
Namespace: ReactiveUI.Binding.Reactive
Assembly: ReactiveUI.Binding.Reactive.dll
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-tvos18.0, net9.0-maccatalyst18.0, net9.0-ios18.0, net9.0-macos15.0, net9.0-desktop1.0, net8.0, net8.0-macos14.5, net8.0-ios18.0, net8.0-maccatalyst18.0, net8.0-macos15.0, net8.0-tvos18.0, net8.0-ios17.5, net8.0-maccatalyst17.5, netstandard2.1, net481, net462, net471
Attributes: [EditorBrowsable(EditorBrowsableState.1)]
public static bool ShouldBind(object? source, object target, Func<IObservedChange<object, object>[]> getSourceProperties, Func<IObservedChange<object, object>[]> getTargetProperties, BindingDirection direction)
Summary: Asks every registered hook whether this binding may be created.
Parameters
| Name | Type | Description |
|---|---|---|
source | object? | The source object, typically the view model. |
target | object | The target object, typically the view. |
getSourceProperties | Func | Reads the current source-side values. |
getTargetProperties | Func | Reads the current target-side values. |
direction | [BindingDirection](# | Which way the binding runs. |
Returns: bool -- true when the binding may proceed; false when a hook refused it.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | A required argument is null. |