Skip to content

FlexibleCommandBinder class

Attributes: [DebuggerDisplay("FlexibleCommandBinder")]

Defined in

Namespace: ReactiveUI.Reactive Assembly: ReactiveUI.Reactive.dll Full name: ReactiveUI.Reactive.FlexibleCommandBinder Modifiers: public

Summary

View source

        Provides a base class for creating flexible command binding strategies that associate commands with object events
        and properties at runtime.
        

Applies to

net10.0-android36.0, net10.0-ios26.0, net10.0-maccatalyst26.0, net10.0-tvos26.0

Class hierarchy
classDiagram
class FlexibleCommandBinder
class ICreatesCommandBinding {
    <>
}
ICreatesCommandBinding <|.. FlexibleCommandBinder

Implements: ICreatesCommandBinding

Remarks

FlexibleCommandBinder enables advanced scenarios for binding ICommand instances to various object types, supporting custom event and property conventions. Implementations can register binding strategies for specific types and control how commands are attached to UI elements or other objects. This class is intended for use in frameworks or libraries that require extensible command binding logic, such as MVVM platforms. Thread safety and binding lifetime management are the responsibility of the caller.

Constructors

NameSummary
.ctorInitializes a new instance of the [FlexibleCommandBinder](# class.

Methods

NameSummary
GetAffinityForObjectReturns a positive integer when this class supports binding a command to an object of the specified type. If the binding is not supported, the method will return a...
BindCommandToObjectBind an ICommand to a UI object, in the "default" way. The meaning of this is dependent on the implementation. This method will discover which event to bind to (e.g., Click,...
static ForEventCreates a commands binding from event and a property.
RegisterRegisters an observable factory for the specified type and property.

Derived types

Inherited members