WPF MenuItem hiding (2 replies)
Hi, I would like to hide selected MenuItem on Delete key press without closing the menu. My markup is: Menu MenuItem Header "Menu" MenuItem Header "First" KeyDown "MenuItem KeyDown"/ MenuItem Header "Second" KeyDown "MenuItem KeyDown"/ MenuItem Header "Third" KeyDown "MenuItem KeyDown"/ /MenuItem /Menu where event handler is: private void MenuItem KeyDown(object sender, KeyEventArgs e) { if (e.Key...