WPF: Window stays minimized even when setting WindowState explicitly

前端 未结 3 1917
隐瞒了意图╮
隐瞒了意图╮ 2021-01-17 18:28

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

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-17 18:34

    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.

提交回复
热议问题