Share via


BaseCommand<TCanExecute> Class

Definition

Abstract Base Class used by AsyncCommand and AsyncValueCommand

public abstract class BaseCommand<TCanExecute>

Type Parameters

TCanExecute
Inheritance
System.Object
BaseCommand<TCanExecute>
Derived

Properties

AllowsMultipleExecutions

Returns true if the Command allows simultaneous executions

ExecutionCount
IsExecuting

Returns true when the Command is currently executing. Returns false when the Command is not executing

Methods

CanExecute(TCanExecute)

Determines whether the command can execute in its current state

ChangeCanExecute()

Raises the ICommand.CanExecuteChanged event. Recommend using RaiseCanExecuteChanged() instead.

RaiseCanExecuteChanged()

Raises the ICommand.CanExecuteChanged event.

Events

CanExecuteChanged

Occurs when changes occur that affect whether or not the command should execute

Applies to