How to manually reload the Visual Studio designer for WPF

前端 未结 9 1752
广开言路
广开言路 2020-12-23 13:17

Is there any way to force the WPF designer to reload or refresh, without rebuilding the entire project or solution?

If there\'s an error, I get an option in the desi

9条回答
  •  离开以前
    2020-12-23 13:53

    For information, I had the same issue with the XAML Designer of Visual Studio Community 2017, i.e. sometimes the designer doesn't show anything, the easiest solution is then to close the XAML file and reopen it.

    I also frequently get the exception "An Unhandled Exception has occurred - Click here to reload the designer - Details: The XAML Designer has exited unexpectedly" (the click restarts the designer successfully).

    Note that, in this VS version, the process of the XAML designer is not named XDesProc.exe, but UwpSurface.exe. If you prefer or have to kill the process, then the designer shows the same exception as above, and you may restart it.

提交回复
热议问题