private UnhookCommand ( ICommand command ) : void | ||
command | ICommand | |
return | void |
private void UnhookCommand(ICommand command)
{
if (_canExecuteChangedHandler != null)
{
command.CanExecuteChanged -= _canExecuteChangedHandler;
_canExecuteChangedHandler = null;
}
UpdateCanExecute();
}