Method CanExecute
CanExecute(object?)
Returns whether the command can be executed.
bool CanExecute(object? parameter = null)
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.