Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Better way to restart (XAML-)Designer in Visual Studio 2012

Currently when i have a problem (like errors and warnings, that are resolved but are still present in the ErrorList or to reload assemblies used by the designer) with the XAML-Designer in Visual Studio 2012 and i need to restart it, i open ProcessExplorer and kill the child-process XDesProc.exe of the running Visual Studio 2012 instance. This results in that Visual Studio 2012 displays an Unhandled Exception Designer process terminated unexpectedly! and provides me the option to reload the designer.

Is there a better or build-in way in Visual Studio 2012 to restart the designer. Reopening XAML-Files often do not help to solve the problems.

like image 923
Jehof Avatar asked Nov 20 '12 10:11

Jehof


People also ask

How do I open XAML Designer in Visual Studio?

To open the XAML Designer, right-click a XAML file in Solution Explorer and choose View Designer. to switch which window appears on top: either the artboard or the XAML editor.

What is XAML in Visual Studio?

Visual Studio and Blend for Visual Studio provide a XAML Designer that helps you build user interfaces (UI) for WPF, UWP, and Xamarin. Forms apps. You can drag controls from the Toolbox or Assets window and set properties in the Properties window.

What is XAML viewer?

XAML is a lightweight XAML Editor. While coding, the corresponding design preview can be displayed in real time.

What is WPF designer?

Windows Presentation Foundation is a UI framework that creates desktop client applications. The WPF development platform supports a broad set of application development features, including an application model, resources, controls, graphics, layout, data binding, documents, and security.


1 Answers

My solution (credit to Ellistraee)

  • close VS and blend
  • delete the bin and obj folders in your solution
  • delete any .user files
  • delete any .suo files
  • open vs and blend
  • open the offending page which would crash the designer - you should get a "please build the project" message
  • F6 to rebuild the solution

And it should work!

like image 57
rikkit Avatar answered Oct 02 '22 13:10

rikkit