Skip to content

RxCommand class

Defined in

Namespace: ReactiveMarbles.Command Assembly: ReactiveMarbles.Command.dll Full name: ReactiveMarbles.Command.RxCommand<T1, T2> Modifiers: public

Summary

View source

        Encapsulates a user interaction behind a reactive interface.
        

Applies to

netstandard2.0

Class hierarchy
classDiagram
class RxCommand~T1,T2~
class IRxCommand~TParam, TResult~ {
    <>
}
IRxCommand~TParam, TResult~ <|.. RxCommand~T1,T2~
class IRxCommand {
    <>
}
IRxCommand <|.. RxCommand~T1,T2~
class ICommand {
    <>
}
ICommand <|.. RxCommand~T1,T2~
class IDisposable {
    <>
}
IDisposable <|.. RxCommand~T1,T2~
class IObservable~TResult~ {
    <>
}
IObservable~TResult~ <|.. RxCommand~T1,T2~

Implements: IRxCommand, IRxCommand, ICommand, IDisposable, IObservable

Constructors

NameSummary
.ctorInitializes a new instance of the [RxCommand](# class.

Properties

NameSummary
CanCommandExecuteGets an observable whose value indicates whether the command can currently execute.
IsExecutingGets an observable whose value indicates whether the command is currently executing.
ThrownExceptionsGets an observable that ticks any exceptions in command execution logic.

Methods

NameSummary
ExecuteEncapsulates 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...
SubscribeEncapsulates 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...
Dispose
OnCanExecuteChangedWill trigger a event when the CanExecute condition has changed.
ICommandCanExecuteWill be called by the methods from the ICommand interface. This method is called when the Command should evaluate if it can execute.
ICommandExecuteWill be called by the methods from the ICommand interface. This method is called when the Command should execute.
Inherited members