private bool CanPerformCommand(CommandKey key) { return _commandManager != null && _commandManager.CanPerform(key); }