Why do MenuItem headers have underscores before them? Why do MenuItem headers have underscores before them? wpf wpf

Why do MenuItem headers have underscores before them?


Its to designate the keyboard shortcut.

"_Edit" means that CTRL + E will activate that menu item, whereas

"E_dit" means that CTRL + D will work.

Also, the underscored letter will have an underline when in focus to clue the user in to the keyboard shortcut.

From MSDN