The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

IReactiveCommand Interface

Summary

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.
graph BT Type-.->Interface0["IDisposable"] Type-.->Interface1["IHandleObservableErrors"] click Interface1 "/api/ReactiveUI/IHandleObservableErrors" Type["IReactiveCommand"] class Type type-node Implementing0["ReactiveCommandBase<TParam, TResult>"]-.->Type click Implementing0 "/api/ReactiveUI/ReactiveCommandBase_2" Implementing1["ReactiveCommand<TParam, TResult>"]-.->Type click Implementing1 "/api/ReactiveUI/ReactiveCommand_2" Implementing2["CombinedReactiveCommand<TParam, TResult>"]-.->Type click Implementing2 "/api/ReactiveUI/CombinedReactiveCommand_2"

Syntax

public interface IReactiveCommand : IDisposable, IHandleObservableErrors

Properties

Name Value Summary
CanExecute IObservable<bool>
Gets an observable whose value indicates whether the command can currently execute.
IsExecuting IObservable<bool>
Gets an observable whose value indicates whether the command is currently executing.

Extension Methods

Name Value Summary
BindCommand<IReactiveCommand, TViewModel, TProp, TControl, TParam>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<IReactiveCommand, TControl>>, Expression<Func<TViewModel, TParam?>>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindCommand<IReactiveCommand, TViewModel, TProp, TControl, TParam>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<IReactiveCommand, TControl>>, IObservable<TParam?>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindCommand<IReactiveCommand, TViewModel, TProp, TControl>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<IReactiveCommand, TControl>>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindValidation<IReactiveCommand, TViewModel, TViewModelProperty, TViewProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty>>, Expression<Func<IReactiveCommand, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds the specified ViewModel property validation to the View property.
BindValidation<IReactiveCommand, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<IReactiveCommand, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<IReactiveCommand, TViewModel, TViewProperty>(TViewModel?, Expression<Func<IReactiveCommand, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds the overall validation of a ViewModel to a specified View property.
BindValidation<IReactiveCommand, TViewModel, TViewProperty>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, Expression<Func<IReactiveCommand, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds a ValidationHelper from a ViewModel to a specified View property.
BindValidation<IReactiveCommand, TViewModel>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<IReactiveCommand, TViewModel>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidationEx<IReactiveCommand, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidationEx<IReactiveCommand, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
DisposeWith<IReactiveCommand>(CompositeDisposable) T
Ensures the provided disposable is disposed with the specified CompositeDisposable.
InvokeViewModelAction<T>(Action<T>) object
This is a thing I lifted from Prism.
WhenAnyObservable<IReactiveCommand, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Expression<Func<IReactiveCommand, IObservable<T1>?>>, Expression<Func<IReactiveCommand, IObservable<T2>?>>, Expression<Func<IReactiveCommand, IObservable<T3>?>>, Expression<Func<IReactiveCommand, IObservable<T4>?>>, Expression<Func<IReactiveCommand, IObservable<T5>?>>, Expression<Func<IReactiveCommand, IObservable<T6>?>>, Expression<Func<IReactiveCommand, IObservable<T7>?>>, Expression<Func<IReactiveCommand, IObservable<T8>?>>, Expression<Func<IReactiveCommand, IObservable<T9>?>>, Expression<Func<IReactiveCommand, IObservable<T10>?>>, Expression<Func<IReactiveCommand, IObservable<T11>?>>, Expression<Func<IReactiveCommand, IObservable<T12>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, T11?, T12?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Expression<Func<IReactiveCommand, IObservable<T1>?>>, Expression<Func<IReactiveCommand, IObservable<T2>?>>, Expression<Func<IReactiveCommand, IObservable<T3>?>>, Expression<Func<IReactiveCommand, IObservable<T4>?>>, Expression<Func<IReactiveCommand, IObservable<T5>?>>, Expression<Func<IReactiveCommand, IObservable<T6>?>>, Expression<Func<IReactiveCommand, IObservable<T7>?>>, Expression<Func<IReactiveCommand, IObservable<T8>?>>, Expression<Func<IReactiveCommand, IObservable<T9>?>>, Expression<Func<IReactiveCommand, IObservable<T10>?>>, Expression<Func<IReactiveCommand, IObservable<T11>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, T11?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Expression<Func<IReactiveCommand, IObservable<T1>?>>, Expression<Func<IReactiveCommand, IObservable<T2>?>>, Expression<Func<IReactiveCommand, IObservable<T3>?>>, Expression<Func<IReactiveCommand, IObservable<T4>?>>, Expression<Func<IReactiveCommand, IObservable<T5>?>>, Expression<Func<IReactiveCommand, IObservable<T6>?>>, Expression<Func<IReactiveCommand, IObservable<T7>?>>, Expression<Func<IReactiveCommand, IObservable<T8>?>>, Expression<Func<IReactiveCommand, IObservable<T9>?>>, Expression<Func<IReactiveCommand, IObservable<T10>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9>(Expression<Func<IReactiveCommand, IObservable<T1>?>>, Expression<Func<IReactiveCommand, IObservable<T2>?>>, Expression<Func<IReactiveCommand, IObservable<T3>?>>, Expression<Func<IReactiveCommand, IObservable<T4>?>>, Expression<Func<IReactiveCommand, IObservable<T5>?>>, Expression<Func<IReactiveCommand, IObservable<T6>?>>, Expression<Func<IReactiveCommand, IObservable<T7>?>>, Expression<Func<IReactiveCommand, IObservable<T8>?>>, Expression<Func<IReactiveCommand, IObservable<T9>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet, T1, T2, T3, T4, T5, T6, T7, T8>(Expression<Func<IReactiveCommand, IObservable<T1>?>>, Expression<Func<IReactiveCommand, IObservable<T2>?>>, Expression<Func<IReactiveCommand, IObservable<T3>?>>, Expression<Func<IReactiveCommand, IObservable<T4>?>>, Expression<Func<IReactiveCommand, IObservable<T5>?>>, Expression<Func<IReactiveCommand, IObservable<T6>?>>, Expression<Func<IReactiveCommand, IObservable<T7>?>>, Expression<Func<IReactiveCommand, IObservable<T8>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet, T1, T2, T3, T4, T5, T6, T7>(Expression<Func<IReactiveCommand, IObservable<T1>?>>, Expression<Func<IReactiveCommand, IObservable<T2>?>>, Expression<Func<IReactiveCommand, IObservable<T3>?>>, Expression<Func<IReactiveCommand, IObservable<T4>?>>, Expression<Func<IReactiveCommand, IObservable<T5>?>>, Expression<Func<IReactiveCommand, IObservable<T6>?>>, Expression<Func<IReactiveCommand, IObservable<T7>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet, T1, T2, T3, T4, T5, T6>(Expression<Func<IReactiveCommand, IObservable<T1>?>>, Expression<Func<IReactiveCommand, IObservable<T2>?>>, Expression<Func<IReactiveCommand, IObservable<T3>?>>, Expression<Func<IReactiveCommand, IObservable<T4>?>>, Expression<Func<IReactiveCommand, IObservable<T5>?>>, Expression<Func<IReactiveCommand, IObservable<T6>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet, T1, T2, T3, T4, T5>(Expression<Func<IReactiveCommand, IObservable<T1>?>>, Expression<Func<IReactiveCommand, IObservable<T2>?>>, Expression<Func<IReactiveCommand, IObservable<T3>?>>, Expression<Func<IReactiveCommand, IObservable<T4>?>>, Expression<Func<IReactiveCommand, IObservable<T5>?>>, Func<T1?, T2?, T3?, T4?, T5?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet, T1, T2, T3, T4>(Expression<Func<IReactiveCommand, IObservable<T1>?>>, Expression<Func<IReactiveCommand, IObservable<T2>?>>, Expression<Func<IReactiveCommand, IObservable<T3>?>>, Expression<Func<IReactiveCommand, IObservable<T4>?>>, Func<T1?, T2?, T3?, T4?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet, T1, T2, T3>(Expression<Func<IReactiveCommand, IObservable<T1>?>>, Expression<Func<IReactiveCommand, IObservable<T2>?>>, Expression<Func<IReactiveCommand, IObservable<T3>?>>, Func<T1?, T2?, T3?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet, T1, T2>(Expression<Func<IReactiveCommand, IObservable<T1>?>>, Expression<Func<IReactiveCommand, IObservable<T2>?>>, Func<T1?, T2?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet>(Expression<Func<IReactiveCommand, IObservable<TRet>?>>) IObservable<TRet>
Observe a observable which is set to a property, and automatically subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet>(Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet>(Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet>(Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet>(Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet>(Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet>(Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet>(Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet>(Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet>(Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet>(Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IReactiveCommand, TRet>(Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>, Expression<Func<IReactiveCommand, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
With<IReactiveCommand, TKey, TField>(Dictionary<TKey, TField>, IDictionary<TKey, TField>) TBuilder
Adds the specified dictionary to the provided dictionary.