Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have used a below technique to create a transparent(click thru) window in WPF.
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));