Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Capture key strokes in ElementHost hosted WPF control

$
0
0

Hi.

In our application we handle some key strokes in a centralized manor, for instance switching between views using special keys.

This works fine for the Windows Forms part of our application. But we are also using some WPF user controls through the ElementHost-control. When for instance tab is clicked in these, they receive keyboard focus and subsequent key strokes are not received in our main form.

Is there any way to trap these key strokes in Windows Forms?

Regards,

Bjørn Terje Svennes


Viewing all articles
Browse latest Browse all 18858

Trending Articles