HWND inside HwndHost inside DockSite, focus issue

Docking/MDI for WPF Forum

Posted 7 years ago by Peter Schregle
Version: 11.2.0552
Avatar

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 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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 (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.