Catel.MVVM.CommandManager.GetOriginalInputGesture C# (CSharp) Method

GetOriginalInputGesture() public method

Gets the original input gesture with which the command was initially created.
The specified command is not created using the method.
public GetOriginalInputGesture ( string commandName ) : Catel.Windows.Input.InputGesture
commandName string Name of the command.
return Catel.Windows.Input.InputGesture
        public InputGesture GetOriginalInputGesture(string commandName)
        {
            Argument.IsNotNullOrWhitespace("commandName", commandName);

            lock (_lockObject)
            {
                if (!_commands.ContainsKey(commandName))
                {
                    throw Log.ErrorAndCreateException<InvalidOperationException>("Command '{0}' is not yet created using the CreateCommand method", commandName);
                }

                return _originalCommandGestures[commandName];
            }
        }