0

Hi i was just wondering if there is any out of the box /hidden feature set in PRISM which helps me achieve application level shortcuts implemented. The only closes match i got was for leveraging WPF feature set in setting up a Application level shortcutss is http://blogs.southworks.net/geoff/2011/03/15/wpfshortcutkeys/ through Application Level shortcut keys in WPF

any suggestions is welcome! Thanks!

Community
  • 1
  • 1
ioWint
  • 1,609
  • 3
  • 16
  • 34
  • What do you mean by application level shortcuts? Do you mean (for instance) Ctrl-C for copy? Or F1 for Help? – Chris Shain Aug 19 '11 at 20:48
  • i mean like F1 and cntrl+Shift+P do a particular search! – ioWint Aug 19 '11 at 22:16
  • It seems there's something in the MVVM toolkit: http://stackoverflow.com/questions/1468362/how-do-i-associate-a-keypress-with-a-delegatecommand-in-composite-wpf – alf Aug 20 '11 at 02:15
  • mine is a MVP application, lemme check if it could be helpful. Thanks Alfonso. – ioWint Aug 20 '11 at 14:44

1 Answers1

0

In Prism you've got the CompositeCommand. This is basically a container that can hold child commands.

Here's a link on the MS site describing how to use them: CompositeCommands

There's also a nice piece of code that handles all of the multi-key bindings. it leverages System.Windows.Interactivity. This will give you the F1/Cntrl+Shift+P functionality essentially for free. You can find out about this here: Gesture Behaviour

This should give you what you're looking for. And using very little code.

Community
  • 1
  • 1
Faster Solutions
  • 7,005
  • 3
  • 29
  • 45