且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

WPF列表框。跳过字符串下划线符号

更新时间:2023-11-15 14:59:16

您可以添加一个TextBlock文本,并将该TextBlock的您Chekbox里面,TextBlock的不支持_助记字符。这就是我的意思是,在XAML,但你可以很容易地转换为代码:

You can add the text in a TextBlock and put that TextBlock inside your Chekbox, TextBlock does not support _ mnemonic characters. Here's what I mean, in xaml, but you can easily convert this to code:

<CheckBox IsChecked="True">
    <TextBlock>string_string</TextBlock>
</CheckBox>