Minimize a window in WPF?

后端 未结 7 1308
借酒劲吻你
借酒劲吻你 2020-12-08 12:53

How do you minimize a window programmatically when using windows WPF? I can seem to find a .Resize attribute?

相关标签:
7条回答
  • 2020-12-08 13:54

    For those who had the same problem: keep in mind that if ShowInTaskbar is set to false, then WindowState.Minimized minimizes the Window into a small window title bar at the bottom left of the desktop - so it's not really minimized.

    A workaround is to set ShowInTaskbar to true, set WindowState to Minimized and then reset the ShowInTaskbar to its old value.

    0 讨论(0)
提交回复
热议问题