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

ReactiveCommand.

CreateCombined<TParam, TResult>(IEnumerable<ReactiveCommandBase<TParam, TResult>>, IObservable<bool>, IScheduler?) Method

Summary

Creates a CombinedReactiveCommand<TParam, TResult> that composes all the provided child commands.
Namespace
ReactiveUI
Containing Type
ReactiveCommand

Syntax

public static CombinedReactiveCommand<TParam, TResult> CreateCombined<TParam, TResult>(IEnumerable<ReactiveCommandBase<TParam, TResult>> childCommands, IObservable<bool> canExecute = null, IScheduler? outputScheduler = null)

Type Parameters

Name Description
TParam The type of the parameter passed through to command execution.
TResult The type of the command's result.

Parameters

Name Type Description
childCommands IEnumerable<ReactiveCommandBase<TParam, TResult>> The child commands that the combined command will compose.
canExecute IObservable<bool> An optional observable that dictates the availability of the command for execution (in addition to the availability specified by each individual child command).
outputScheduler IScheduler? An optional scheduler that is used to surface events. Defaults to RxApp.MainThreadScheduler.

Return Value

Type Description
CombinedReactiveCommand<TParam, TResult> The CombinedReactiveCommand instance.