How can I toggle the main menu visibility using the Alt key in WPF?
问题 I'd like the main menu in my WPF app to behave like the main menu in IE8: it's not visible when the app starts pressing and releasing Alt makes it visible pressing and releasing Alt again makes it invisible again repeat until bored How can I do this? Does it have to be code? Added in response to answers submitted, because I'm still having trouble: My Shell code-behind now looks like this: public partial class Shell : Window { public static readonly DependencyProperty IsMainMenuVisibleProperty