Possible Duplicate:
Disable WPF label accelerator key (text underscore is missing)
I am currently working on a C# WPF project. I need to read in a configuration file and display the options retrieved inside a label. The options are sometimes labelled with an underscore (_) in the middle of the option name, for example, it might be something like my_option
.
When I try to display my_option
inside a label, the underscore is hidden and is instead used as a keyboard shortcut when the Alt key is pressed.
How can I disable this from happening and instead show the underscore in the label?
I have tried doing it so it is my__option
(that is, adding two underscores together instead of one), but this doesn't seem to do anything.