My application has a tray icon which, when double-clicked, hides or shows the application window. My issue is that I can\'t seem to bring the window to the foreground if it
I found a better way. As the problem happens when changing the visibility of the window and the window state what I do is changing the property ShowInTaskBar instead of Visibility. Anyway a minimized window with ShowInTaskBar = true is like a hidden window.