HWND inside HwndHost inside DockSite, focus issue

Docking/MDI for WPF Forum

Posted 12 years ago by Peter Schregle
Version: 11.2.0552

The second issue I'm facing is that the keyboard focus seems to be incorrect with my HWND inside HwndHost inside DockSite.

I have implemented command handlers inside my HwndHost derived class.

When I click inside the HwndHost derived window, the routed commands are received by my HwndHost derived class and are properly enabled/disabled and executed.

When I click on the tab displaying the title of my tabbed document, all commands are grayed out on the ribbon, presumably because they are no longer routed to my HwndHost derived class. I assume that is because the keyboard focus is set to some other window in this case.

I'm wondering how I can fix this?

Comments (1)

Answer - Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Peter,

Unfortunately WPF keyboard focus is a bit of a mess when using Interop content. But if you can please put together a small sample project that reproduces your issue and email it over then we can take a closer look. Be sure to remove any executables or change the extension of the zip file to ensure it gets past our email filters.

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.