Passing Input events from HwndHost to underlying WPF controls? Passing Input events from HwndHost to underlying WPF controls? wpf wpf

Passing Input events from HwndHost to underlying WPF controls?


If you still require an answer: yes you can. Look at the Microsoft example here: http://msdn.microsoft.com/en-us/library/ms752055.aspxIn that example, the HwndHost derived class 1st creates a 'sub' window and then creates a control (ListBox) in that window. A HwndSourceHook is then added that catches messages (in the example, selection change messages from the ListBox) and uses them in the WPF context.