WPF Transparent Web Page cannot penetrate mouse events #4052
Replies: 3 comments 4 replies
-
My demo has two layers of WPF windows, the upper one is a transparent window, which hosts the ChromiumWebBrowser control and loads a transparent web page. |
Beta Was this translation helpful? Give feedback.
-
Sending mouse events to the browser is the intended behaviour. What's stopping you from overriding the mouse methods and setting
|
Beta Was this translation helpful? Give feedback.
-
I find that I have a misunderstanding. I've always thought that click events on transparent controls could penetrate to the controls below, but they can't. Only transparent controls on transparent windows can penetrate to the next layer of windows. |
Beta Was this translation helpful? Give feedback.
-
I'm using WPF.CefSharp.
I test load a transparent web page, but mouse events cannot penetrate the WPF controls below the transparent web page.
Is there any other solution to enable mouse events to penetrate transparent web pages.
I read the source and found that e.handle = true, which seems to be the reason why mouse events cannot penetrate.
I tested and found that if the transparent window is above the Winform window in the WindowFormHost, mouse events can penetrate the transparent web page.
Beta Was this translation helpful? Give feedback.
All reactions