Correct way to create a menu with shortcuts in WPF
Posted
by mattdekrey
on Stack Overflow
See other posts from Stack Overflow
or by mattdekrey
Published on 2010-06-08T04:16:03Z
Indexed on
2010/06/08
4:22 UTC
Read the original article
Hit count: 199
What is the correct/best way to create a menu with hotkey shortcuts?
I simply want a File menu like Visual Studio's that has New, Open, Save, Save All, Exit, and a few other standard shortcuts.
It seems that InputGestureText displays the appropriate text, but since it's called "Text" and doesn't seem to trigger events, I'm going to assume that isn't the right way to do it. The Command architecture also seems fairly bulky, so I don't want to head down that path if there is a better way.
© Stack Overflow or respective owner