Need some conrols not to be click thru in wpf window

Sunil A M 171 Reputation points
2022-08-12T09:00:33.577+00:00

HI Team,

I have achieved click thru using the below technique in my application.
https://stackoverflow.com/questions/2842667/how-to-create-a-semi-transparent-window-in-wpf-that-allows-mouse-events-to-pass
https://itecnote.com/tecnote/c-making-a-wpf-window-click-through-but-not-its-controls/

Now i want some buttons in the window to be clicked(Button click event should fire) first and thru to the back screen.

In the below diagram, whole window is click thru now.
230707-image.png

Now i want click thru on the buttons which i marked i blue circle.(Minimiz,maximize and close) event should fire first then click thru to the back screen..

Best Regards,
Sunil

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,676 questions
{count} votes