Skip to content

ICreatesCommandBinding interface

Defined in

Namespace: ReactiveUI.Binding Assembly: ReactiveUI.Binding.dll Full name: ReactiveUI.Binding.ICreatesCommandBinding Modifiers: public abstract

Summary

Plugin interface for types that can bind an ICommand to a control. Implementations register with Splat and are resolved by affinity scoring.

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Remarks

This interface follows the same affinity-based resolution pattern as ICreatesObservableForProperty. Multiple implementations may be registered; the one with the highest affinity score for a given control type wins.

Platform-specific modules (WPF, WinForms) register their own implementations to handle platform-specific binding semantics (e.g., WPF's Command/CommandParameter properties, WinForms event-based binding).

Methods

NameSummary
GetAffinityForObjectReturns a positive integer when this implementation supports binding a command to an object of the specified type. If the binding is not supported, the method returns a...
BindCommandToObjectBinds an ICommand to a UI object using the default event. The default event is determined by the implementation (e.g., Click,...