WPF - Send mouse wheel messages to a Frame/WebBrowser control
-
21-09-2019 - |
Question
I'm hosting some web content in a WPF app using the WebBrowser control (or Frame, havent' decided yet). There are some external influences that I'd like to use to simulate mouse wheel behavior in the web content. Is there a way for my WPF app to send mouse messages to the WebBrowser control, with a Delta (scroll) value that I specify?
Solution
If you will not find anything simpler try this. Get WebBrowser window handle, and SendMessage() WM_MOUSEWHEEL to it...
Hope this helps
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow