serlingpa
serlingpa

Reputation: 12700

Visual Studio 2012 hangs on editing XAML

I have a problem with Visual Studio 2012 that I'm hoping someone can help me out with.

Visual Studio hangs when I try to modify a XAML file. Admittedly my solution contains over fifty projects and I am running ReSharper and StyleCop. This is my first day in a new job and my first experience with XAML so I'm trying to make a good impression!

What can I try to sort out this issue?

Thanks in advance, Mark

Upvotes: 11

Views: 4412

Answers (4)

pixel
pixel

Reputation: 10587

This is still issue in 2013 (as of May 2016). The suggested solution above is not helping.

Upvotes: 0

Ivan Yurchenko
Ivan Yurchenko

Reputation: 3871

Try to suspend/uninstall Resharper and all other plug-ins for Visual Studio. This worked for me whereas all other methods did not.

Also try to run VS with /SafeMode flag and see if it works properly.

Upvotes: 0

Peter.S
Peter.S

Reputation: 57

With my Visual Studio 2012.4 I found that while opening XAML in design mode, XDesProc was using 2gb of my RAM and 25% of CPU (i7 8 core), I resolve the problem by turning off the data loading in View Model’s constructor if in design mode. Loading the ItemsSources of my many Comboboxes just bogged down the designer. This way I can still have my designer. Don't forget to import System.Windows and System.ComponentModel in your ViewModel and add these code below in the constructor

If DesignerProperties.GetIsInDesignMode(New DependencyObject) Then

‘ Do nothing

Else

‘ Load the data

End If

Upvotes: -2

serlingpa
serlingpa

Reputation: 12700

After a bit of googling, I found the solution to my problem here: http://weblogs.asp.net/fmarguerie/archive/2009/01/29/life-changer-xaml-tip-for-visual-studio.aspx

Upvotes: 12

Related Questions