Prevent WPF Window Minimization (Winkey + D, mostly)

I have a window that should act like a Windows Vista gadget (+); it should stay on the desktop and not appear on the taskbar and alt + tab menus, but most importantly, not be minimized.

Here is its title:

Since its style is set to None, it has no control buttons (minimizes, closes, etc.), but it can still be minimized using the Show Desktop function and the Winkey + D combination.

How can I prevent this?

Thank!

+2


source to share


1 answer


Show Desktop does more than just minimize windows - after minimizing all the windows it can, it then brings the desktop window to the top of the z-order. Raymond Chen has a good explanation for this.



You can mark your window as "always on top", but then it will appear on top of each window. I can't think of any other way to prevent Show Desktop from showing. A quick experiment with Windows Sidebar shows that it is also minimized on Show Desktop, unless you set Sidebar Always On Top of Other Windows.

+2


source







All Articles