AttachedCommandBehavior.SimpleCommand.CanExecute C# (CSharp) Method

CanExecute() public method

Checks if the command Execute method can run
public CanExecute ( object parameter ) : bool
parameter object THe command parameter to be passed
return bool
        public bool CanExecute(object parameter)
        {
            if (CanExecuteDelegate != null) {
                return CanExecuteDelegate(parameter);
            }
            return true; // if there is no can execute default to true
        }