【发布时间】:2011-01-05 07:40:07
【问题描述】:
我有一些动态填充项目的 WPF ListBox。像这样:
ListBox.Items.Add
(new ListBoxItem { Content = new CheckBox { IsChecked = true, Content = "string_string"} );
问题在于复选框内容。它在 GUI 上显示,如“stringstring”...... 如何转义“_”符号? (我动态获取字符串)
【问题讨论】:
-
你想看下划线还是去掉它?
-
我想在 GUI 上看到下划线