解决方法
在尝试了线程
WPF listbox. Skip underscore symbols in strings中的所有解决方案之后,我似乎没有在MenuItems上工作,我这样做了:
public class EscapeMnemonicsStringConverter : IValueConverter { public object Convert(object value,Type targetType,object parameter,CultureInfo culture) { string str = value as string; return str != null ? str.Replace("_","__") : value; } public object ConvertBack(object value,CultureInfo culture) { throw new NotImplementedException(); } }