Skip to content

CreatesCommandBindingViaCommandParameter class

Defined in

Namespace: ReactiveUI Assembly: ReactiveUI.Core.dll Full name: ReactiveUI.CreatesCommandBindingViaCommandParameter Modifiers: public sealed

Summary

View source

Creates command bindings for objects that expose Command and CommandParameter as public instance properties.

Applies to

net10.0, net10.0-maccatalyst26.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net10.0-tvos26.0, net10.0-windows10.0.19041, net10.0-macos26.0, net10.0-ios26.0, net10.0-android36.0, net9.0, net9.0-tvos18.0, net9.0-macos15.0, net9.0-maccatalyst18.0, net9.0-windows10.0.19041, net9.0-ios18.0, net9.0-desktop1.0, net8.0, net8.0-windows10.0.19041, net8.0-ios18.0, net8.0-maccatalyst18.0, net8.0-macos15.0, net8.0-tvos18.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.5, netstandard2.1, net481, net462, net471

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

Implements: ICreatesCommandBinding

Remarks

This binder targets command-source style controls (for example, WPF-style controls) where command execution is driven by setting properties rather than subscribing to an event.

Trimming/AOT note: This type uses name-based reflection to locate public properties. Consumers running under trimming must ensure the relevant public properties are preserved on the target control types. This requirement is expressed via DynamicallyAccessedMembersAttribute on the public generic entry points.

Performance note: This implementation uses a per-closed-generic static cache (“holder”) rather than a global MRU. Steady-state access is lock-free and reduces lookup overhead to static field reads.

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