How to restore a minimized Window in code-behind?

后端 未结 7 894
无人共我
无人共我 2020-12-08 06:24

This is somewhat of a mundane question but it seems to me there is no in-built method for it in WPF. There only seems to be the WindowState property which being

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

    In native Windows you can restore your window to a previous state with ShowWindow(SW_RESTORE):

    Activates and displays the window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when restoring a minimized window.

    There's surely .Net counterpart to that.

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