Expand description
CommandBinding (ReactiveUI.Binding): the execution of commands from observables
(CommandInvoker) and the binding of commands to controls (CommandBinderService, with
the binders CreatesCommandBindingViaEvent and CreatesCommandBindingViaCommandParameter).
Structs§
- Command
Binder Service - Finds the
ICreatesCommandBindingwith the highest affinity for a type of control (CommandBinderService), as the property observation finds its observer. - Command
Invoker - Executes a command with each value of an observable as its parameter, skipping a value the
command cannot execute (
CommandInvoker). - Creates
Command Binding ViaCommand Parameter - Binds a command to a control of type
Cthat has aCommandand aCommandParameterproperty (CreatesCommandBindingViaCommandParameter): the binding assigns the parameter, then the command, and disposing it restores the values the control had. - Creates
Command Binding ViaEvent - Binds a command to an event of a control of type
C(CreatesCommandBindingViaEvent): executed with the latest command parameter each time the event is raised, if the command can execute with it.
Constants§
- DEFAULT_
COMMAND_ EVENTS - The names of the events a control raises when it is used, in order of preference, which a
command binds to when no event is named (
defaultEventsToBind).
Functions§
- bind_
command_ to_ event - Executes
commandwith the latest value ofcommand_parameterwhenever the event thatsubscribeadds a handler to is raised, if the command can execute with it; disposing the result removes the handler and ends the subscription of the parameter. - control_
event - A subscription to the event that
eventreads from a control.
Type Aliases§
- Control
Event Subscription - Adds a handler to an event of a control of type
C; disposing the result removes it.