Can you please tell me how to make the window blink in the taskbar? Well, so often they do some kind of event in the window, it happened, but it is minimized and this is the notice.
@VladD xs I may be doing something wrong, but I just don’t want to work with it. I put a breakpoint when I try to create an instance of WindowInteropHelper exiting the function altogether. I'm testing this:
public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); var t = new Timer(5000); t.Elapsed += Elapsed; t.Start(); } [DllImport("user32.dll")] public static extern int FlashWindow(IntPtr Hwnd, bool Revert); private void Elapsed(object sender, ElapsedEventArgs e) { var hwnd = new WindowInteropHelper(this).Handle; FlashWindow(hwnd, true); } }
window.Activate()will not drive? (The window with this should be in the background.) - VladD