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

后端 未结 4 2179
醉话见心
醉话见心 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条回答
  •  萌比男神i
    2020-12-23 14:56

    As proposed by Kate, I used taskbar progress like this:

    XAML:

    
       
    
    

    cs:

    taskBarItem.ProgressState = System.Windows.Shell.TaskbarItemProgressState.Indeterminate;
    

    This makes the taskbar icon blink in green, which was good enough for my use case to get the users attention to a long running application.

提交回复
热议问题