I am using C# / WPF to make an application. In that application, I want to blink the window if a particular event occurs so that user of that application knows that something happened. How can I get this in my C# WPF application.
Like in Yahoo Messenger, if you get a message then the message window blinks to get your focus, I want to use that effect in my application.
Flashing the window and taskbar in a similar way to IM notifications can be accomplished in WPF using the following code. It uses PlatformInvoke to call the WinAPI function
FlashWindowExusing the Win32 Handle of the WPFApplication.Current.MainWindowCode
Usage