RoutedCommand.InputGestures Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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);

ApplicationCommands.Paste.InputGestures.Add(PasteCmdMouseGesture);

.NET Framework
Available since 3.0
Return to top
Show: