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,292 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
HI Team,
I have used a below technique to create a transparent(click thru) window in WPF.
https://stackoverflow.com/questions/2842667/how-to-create-a-semi-transparent-window-in-wpf-that-allows-mouse-events-to-pass
Could you please tell me how to revert the above functionality on some event(on the fly).
(Need code to Revert the transparent window to normal window on some event).
You can remove the WS_EX_TRANSPARENT extended style :
int nExStyle = GetWindowLong(hWnd, GWL_EXSTYLE);
SetWindowLong(hWnd, GWL_EXSTYLE, (nExStyle & ~WS_EX_TRANSPARENT));