Interface IReactiveCommand
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
Encapsulates a user action behind a reactive interface. This is for interop inside for the command binding. Not meant for external use due to the fact it doesn't implement ICommand to force the user to favor the Reactive style command execution.
- Inherited Members
- Extension Methods
Properties
CanExecute
Gets an observable whose value indicates whether the command can currently execute.
Property Value
- IObservable<bool>
The can execute.
Remarks
The value provided by this observable is governed both by any canExecute
observable provided during
command creation, as well as the current execution status of the command. A command that is currently executing
will always yield false
from this observable, even if the canExecute
pipeline is currently true
.
IsExecuting
Gets an observable whose value indicates whether the command is currently executing.
Property Value
- IObservable<bool>
The is executing.
Remarks
This observable can be particularly useful for updating UI, such as showing an activity indicator whilst a command is executing.