Tricky problem. I'm guessing the convention is active in all the controls in the program.
From some brief searching, you could try:
- Using double underscore on the first underscore, then it appears as a single underscore (but I think it may act as an accelerator for the underscore character)
- Setting the RecognizesAccessKey property to false. This apparently works for Label. (I saw some people asking about how to globally set this on all controls, so you may find a way to do this - or something close to this)
------------------------------
Quan Mueller
Revenant Solutions - TML Development
------------------------------
Original Message:
Sent: 04-26-2022 18:37
From: Ronny Schneider
Subject: best way to globally disable WPF Key Acceleration?
In labels, but also i.e. the CheckedListBoxEntityPicker the first underscore is removed.
According to my research that is due to the key acceleration enabled by default. If you try to access a field by pressing ALT and the key behind the underscore.
Which doesn't make much sense for the Listbox IMHO.
Is there a simple way to disable this?
------------------------------
Ronny Schneider
------------------------------