Sometimes PreviewKeyDown is not fired when Window is floating.

Docking/MDI for WPF Forum

Posted 10 years ago by Vinay Chougule
Version: 14.1.0602
Avatar

Hi,

This is an intermittent issue.

When the docking window is floating (undocked), the FrameworkElement.PreviewKeyDown is not fired. As soon as it is docked, the event is fired normally.

Any ideas what could be causing this issue?

Kind Regards,

Vinay

Comments (1)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Vinay,

Which element are you attaching to for that event?  If you mean you are attaching to something in the main Window's visual tree, then that is correct, events from rafted (undocked) docking windows won't ever bubble up to it since those are contained in a separate rafting Window and bubble events don't cross WPF Window boundaries.

You are best off putting handlers in the root control of each docking window's content.


Actipro Software Support

The latest build of this product (v24.1.1) 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.