I have an ActiveX control inside a WinForms user control. My WinForms app loves it!
Now, moving on to WPF, I am using a user control in a WindowsFormsHost control. Works great ... but I want to treat this control as a single element so that the user can gently remove the TAB on top of existing WPF controls. And this user control should NOT "enter" into it. that is, just consider it as a single control, like everyone else.
I think I need the ability to catch the keys, and in the event handler just move the focus to the next control in the sequence, but I can not interfere with any input to the keyboard. I tried WPF PreviewKey events .. etc., but as soon as the tab hits the control, it seems to stay inside it, and WPF events are ignored.
I could not find anything in this in many WPF books and on the net. Can anyone suggest a way?
Thanks Jack.
source
share