Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to passthrough the mouse event at transparent area #2

Open
maggch97 opened this issue Feb 15, 2023 · 2 comments
Open

How to passthrough the mouse event at transparent area #2

maggch97 opened this issue Feb 15, 2023 · 2 comments

Comments

@maggch97
Copy link

This demo is very helpful. But does anyone know how to passthrough the mouse event at transparent area? I want the mouse can click the window under the transparent area.

I found some document said in WPF, SetLayeredWindowAttributes with green crKey can make the transparent area unclickable, but I don't know how to do that in this demo.

@castorix
Copy link
Owner

I posted some methods I tested in the thread : microsoft/microsoft-ui-xaml#1247 (comment)
They work, but not very good methods...

@softworkz
Copy link

Have you tried SwapChainPanel.CreateCoreIndependentInputSource?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants