I have a fly out pane and a tabbed UI that displays documents with WinForms controls (using a WindowsFormsHost).
The problem is that if the pane is unpinned, when I click on the WinForms control, and then go back to the pane, the pane doesn't get keyboard focus even if I click on it (mouse events, OTOH, will be handled). It looks and behaves as if it wasn't activated (except for the mouse).
If the pane is pinned, the problem doesn't appear.
The problem also doesn't appear when I click on any other WPF focusable control after the WinForms control gets the focus.
A workaround for this is to call Focus on the WindowsFormsHost (for instance, in the WinForms control's GotFocus handler, or in MouseEnter/MouseLeave handlers).
Can you provide a sample and specific steps when running that sample so we can see the issue you are describing?
I've seen the same thing. Attached is a sample. If you click any of the WPF elements before opening the flyout pane, all works as expected. If you click the WinForms tab and click in the WinForms rich text box, you cannot select anything in the flyout pane.
bump