I have some commands that use Ctrl-Win- as hotkeys. However, MenuItem displays these as Ctrl-Windows-, which is quite ugly. How can I modify it so that “Win” is displayed instead of “Windows”. Yuck. Help!

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Set the
InputGestureTextproperty of theMenuItem. Just remember to do it before the command binding.EDIT
If you do not want to repeat that for each
Menuitemyou may iterate all theMenuItems to change theirInputGestureTextproperty programmatically. As alternative, if you’re using custom input bindings, you may derive a class fromKeyGestureand overrideGetDisplayStringForCultureto do the replacement.