Method CanExecute
CanExecute(string, object?)
Returns whether the command can be executed.
public virtual bool CanExecute(string name, object? parameter = null)
Parameters
name
stringCommand name.
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.