InputGesture assignment to button in a menu

Ribbon for WPF Forum

Posted 15 years ago by Hamid Noorbakhsh
Version: 4.5.0485
How can I add an input gesture 'Ctrl + Z' that fires a specific method in my application to the ribbon:Button. I am having difficulty finding where to add this.

Thanks for any input.

Comments (1)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Hamid,

You'd probably want to add a KeyGesture to the InputGestures collection of a RoutedCommand. Then assign that RoutedCommand to the ribbon:Button.Command property.

Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.