AttachedCommandBehavior.SimpleCommand.CanExecute C# (CSharp) 메소드

CanExecute() 공개 메소드

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