You may not know this, but pressing the key F4on ComboBoxmakes it a drop-down list of items. I believe this is the default behavior on Windows.
Does anyone know how to override this behavior in WPF (C #)?
I know that overriding the default behavior is usually considered bad practice, however in this case I have a solid device with XP Embedded. It has several well-known function keys ( F1- F6) that should trigger different events. This works fine, however, if you focus on ComboBox, events do not fire when it crashes ComboBox.
I tried to catch the event KeyDownboth on the form and on ComboBoxlistening to the key F4, however this is not so far as the keystroke should be processed at a lower level.
Any ideas?
source
share