Cannot see _ (underscore) in WPF content

后端 未结 5 1039
挽巷
挽巷 2020-12-03 20:34

A very simple question:

Why I cant see _ (underscore) in WPF content?

For instance the content of

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-03 21:20

    Labels support mnemonics (i.e. you can use ctrl+(key) to give them focus). You define the mnemonic key using an underscore.

    http://www.charlespetzold.com/blog/2006/01/061004.html

    If you want to see underscores, replace single underscores with double underscores.

提交回复
热议问题