Adding Keyboard Shortcut to Controls in WPF: “_” instead of “&”
This is one of the things that is different in WPF due to Xaml/XML considerations…perhaps VS2008 & Expression Blend could ease the transition by detecting the entry of "&" into the Content property?
Internal email…please read from bottom.
From: MS Employee #2
Using ‘&’ in XAML would require typing & due to XML syntax.
From: MS Employee #1
Sent: Sunday, December 02, 2007 1:52 AM
Subject: _ vs. &
I spent about a day figuring out a way to add keyboard shortcut to my WPF button – in winforms/vb for all these years it was a simple & before the char u want to use as a shortcut key – wonder why was the & changed to a _ in wpf???