[WPF]ShowInTaskbar does not work in some cases under WIN8. RRS feed

  • Question

  • Case 1:

    ShowIntaskbar set to "false" doesn't work only when WindowStyle="None" and WindowState="Maximized".

    Case 2:

    Only WindowStyle="none" and ShowInTaskbar="false", now window hide from taskbar. But if I call SetWindowPos API to modify window's size, window display in taskbar again.

    How to solve them?

    Tuesday, May 22, 2012 7:17 AM

All replies

  • Hi Rel1ve,

    I can reproduce this. WPF is implementing ShowInTaskbar by creating the window owned by a hidden window. This should keep the window out of the TaskBar, but I suspect something with the order in which WPF performs these changes prevents the TaskBar from noticing the change.

    Calling SetWindowPos(.... SWP_FRAMECHANGED) doesn't appear to affect this scenario, which makes since we aren't changing the window styles that.

    I'll need to look into this further to try to find a workaround.


    Thursday, May 24, 2012 1:59 AM