Method CanExecute
CanExecute(object?)
Returns whether the command can be executed.
bool CanExecute(object? parameter)
Parameters
parameter
objectA parameter that may be used in executing the command. This parameter may be ignored by some implementations.
Returns
- bool
true if the command can be executed with the given parameter and current state. false otherwise.