How to restore a minimized Window in code-behind?

后端 未结 7 917
无人共我
无人共我 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:07

    For some reason,

    WindowState = WindowState.Normal;
    

    didn't work for me. So I used following code & it worked..

     Show();
     WindowState = WindowState.Normal;
    

提交回复
热议问题