Open sandboxFocus

Method CanExecute

CanExecute(T)

Determines whether the command can be executed with the specified parameter. Returns true if no CanExecute delegate was provided, or if the delegate returns true.

Declaration
public bool CanExecute(T parameter)
Parameters
Type Name Description
T parameter

The command parameter.

Returns
Type Description
bool

true if the command can be executed; otherwise, false.