How to make WPF MenuBar visibile when ALT-key is pressed?
问题 Today I got some new restrictions on my WPF user interface that should eliminate the permanent visibility of the MenuBar. I thought of imitating the user interface of Windows Live Messenger. That application displays the MenuBar only if the ALT-key is pressed. And hides it again when the focus on the MenuBar is lost. Currently I don't have a clue how to build such a thing in WPF... is something like this possible? Thanks in advance. 回答1: You can write a key down event on main window.. KeyDown