Skip to content

TargetActionCommandBinder class

Defined in

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

Summary

View source

An ICreatesCommandBinding implementation that binds commands using Cocoa's Target/Action mechanism.

Applies to

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

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

Implements: ICreatesCommandBinding

Remarks

Many Cocoa controls (buttons, menu items, toolbar items, etc.) participate in the Target/Action pattern. This binder sets the control's Target and (when present) Action properties to route UI invocations to an ICommand.

Trimming/AOT: the Target/Action path reflects over an unknown runtime type to locate properties named Target, Action, and optionally Enabled. This is not trimming-safe and is annotated accordingly. Prefer the add/remove handler overloads on ICreatesCommandBinding where applicable.

Constructors

NameSummary
.ctor

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,...
Inherited members