Partilhar via


RoutedCommand.InputGestures Propriedade

Definição

Obtém a coleção de objetos InputGesture associados a esse comando.

public:
 property System::Windows::Input::InputGestureCollection ^ InputGestures { System::Windows::Input::InputGestureCollection ^ get(); };
public System.Windows.Input.InputGestureCollection InputGestures { get; }
member this.InputGestures : System.Windows.Input.InputGestureCollection
Public ReadOnly Property InputGestures As InputGestureCollection

Valor da propriedade

Os gestos de entrada.

Exemplos

O exemplo a seguir mostra como adicionar um novo MouseGesture a um RoutedCommand.

MouseGesture PasteCmdMouseGesture = new MouseGesture(
    MouseAction.MiddleClick, ModifierKeys.Alt);

ApplicationCommands.Paste.InputGestures.Add(PasteCmdMouseGesture);
Dim PasteCmdMouseGesture As New MouseGesture(MouseAction.MiddleClick, ModifierKeys.Alt)

ApplicationCommands.Paste.InputGestures.Add(PasteCmdMouseGesture)

Aplica-se a

Confira também