How can I make a window invisible to mouse events in WPF?
I created this class, and it works perfectly for make my WPF application transparent to mouse events. using System.Runtime.InteropServices; class Win32 { public const int WS_EX_TRANSPARENT = 0x00000020; public const int GWL_EXSTYLE = (-20); [DllImport("user32.dll")] public static extern int GetWindowLong(IntPtr hwnd, int index); [DllImport("user32.dll")] public static extern int SetWindowLong(IntPtr hwnd, int index, int newStyle); public static void makeTransparent(IntPtr hwnd) { // Change the extended window style to include WS_EX_TRANSPARENT int extendedStyle = GetWindowLong(hwnd, GWL