我将.ContentLabel 的值设置为包含下划线的字符串; 第一个下划线被解释为加速键.
如果没有(更换所有改变基础字符串_用__),是有办法禁用标签加速器?
我有一些WPF ListBox,它动态填充项目.像这样的东西:
ListBox.Items.Add
(new ListBoxItem { Content = new CheckBox { IsChecked = true, Content = "string_string"} );
Run Code Online (Sandbox Code Playgroud)
问题出在复选框内容上.它在GUI上显示为"stringstring"...如何逃避"_"符号?(我动态获取字符串)