InputGesture assignment to button in a menu

Ribbon for WPF Forum

Posted 14 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 14 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 (v22.1.3) was released 21 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.