It happens in all my WPF applications and Visual Studio 2019 (which is definitely WPF based) also exhibits this strange behavior:
Simply right click an item in the solution explorer while holding, say, the Control key and you should notice that the items highlighting will intermittently work if you keep holding the Control modifier.
At first I presumed that the grids and lists controls were still catching the modifier keys for the items selection but this issue also occurs with a context menu on a simple control like a standard button.
Is there a way to fix this glitch?
Here is a gif with wpf application context menu in action. First I move mouse normally, then with Ctrl hold down:
As you can see it glitch (is not highlighting menu items).
Ctrl
and looking at context menu in my wpf application I can confirm menu item can be mouseovered without it being highlighted, which looks ugly . I wasn't aware about it, because I would never holdCtr
when using menu.Alt
will just close menu.Shift
has same issues. Why do you need modifier for menu? Create 2 menu items instead. – DoreendoreliaMenu
control as well. You can't reliably switch between main menu headers when you hold down theCtrl
orShift
keys. I happen to agree with @Keynote and @Doreendorelia though, using a modifier key on a context menu doesn't seem like a normal way to interact with your UI. – Changeover