-1

I need to control behind semi-transparent background with mouse. In detail, my app fills up the whole screen with semi-transparent background and it has got a button on it. I wanted to be able to click on any parts behind the semi-transparent background and the solution for this I found is this: How to create a semi transparent window in WPF that allows mouse events to pass through

With this solution, I was able to click and do everything with mouse behind the background but unfortunately, I cannot click on that button anymore because the button also passed the mouse events through itself.

How can I make the button clickable? Any help would be appreciated. You can try the example app on the provided link above. Thanks

1 Answers1

0

I managed to solve the problem myself. The solution was mouse hook. Perhaps, @montonero's idea is right. When mouse is over the desired region, I removed WS_EX_TRANSPARENT.