Wpf hosting window forms - mouse events do not pass

I have a WPF application with WindowsFormsHost that hosts a geobase map.

The problem I am facing is passing mouse events to the map. I added MouseUp event handlers to the map (in code), but this does not work, and I tried to add MouseUp event handlers to a grid that contains WindowsFormsHost, but events are not picked up by this either.

I'm not sure if this is a general WPF problem with how I handle events, or a more specific issue specific to hosting Windows Forms applications in WPF ...

Any pointers would be appreciated :)

+3
source share

Source: https://habr.com/ru/post/1703249/


All Articles