How to capture mouse click event inside WindowsFormsHost control?
-
21-06-2021 - |
Domanda
I have a user control with a WindowsHostControl that hosts a 3rd party video control. I want to be able to capture mouse click event when mouse is clicked on the video. I tried attaching an event to WindowsFormsHost control, but it never triggers. How do I go about intercepting the mouse click?
Soluzione 2
I solved the issue by attaching event handler to the Child element contained inside WindowsFormsHost.
Altri suggerimenti
Capture PreviewMouseDown instead.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow