RoutedCommand.InputGestures Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the collection of InputGesture objects that are associated with this command.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public InputGestureCollection InputGestures { get; }

Property Value

Type: System.Windows.Input.InputGestureCollection

The input gestures.

The following example shows how to add a new MouseGesture to a RoutedCommand.

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


.NET Framework
Available since 3.0
Return to top