How to make a WPF Window to blink on the taskbar?

后端 未结 4 2170
醉话见心
醉话见心 2020-12-23 14:25

A given moment my WPF app needs user attention. I know it is possible to make the Windows 7 taskbar icon to flash with a yellow color.

I tried so far:

4条回答
  •  無奈伤痛
    2020-12-23 15:15

    Better to use the feature of Windows 7 that is designed for this purpose - taskbar overlay icons. http://10rem.net/blog/2009/12/09/overlaying-icons-on-the-windows-7-taskbar-with-wpf-4 is one of the many places you can see how to do it.

    If the attention is needed as part of a long running process, I'd use a taskbar progress bar overlay (also easy to do in WPF) and change its state from Normal to Paused or Error which display as yellow and red respectively. That will get the user's attention.

提交回复
热议问题