Visual Studio .NET 2008 - Speed Up XAML Load Times By Robbe Morris Printer Friendly Version
|  |
Do your XAML files load up in Visual Studio .NET 2008 as slow as mine? Here is a workaround that might help. |
Visual Studio .NET 2008 is an extreme disappointment for me. Its performance is attrocious and the XAML designer support is "weak" to say the very least... "pathetic" if one were to be honest.
The designer is so bad I almost never use it. In fact, I never drag and drop controls from the toolbox. I just rely on my knowledge of the tags and intellisense in the XAML editor.
What infuriates me is that people on the Visual Studio .NET development team put this app through the testing phase, watched this poor performance again and again, and then said "looks good to me... ship it".
I've found that just simply opening the XAML files in XAML mode still takes forever...
To get back some of the lost hours of watching/waiting for it to load, I tried opening up the toolbox and removing every single tab (common, general, and everything else) to the point that there was absolutely nothing in the toolbox.
As it turns out, my hunch was right and this does speed up the load times. Of course, if you work with the designer and need drag and drop functionality on the controls at design time, this tip won't help much. |
| Biography |
Robbe is a 2004-2008 Microsoft MVP for C# and the .NET Evangelist for Alinean Inc.. He is also the co-founder of EggHeadCafe. Robbe enjoys scuba diving with the folks at wet-n-fla.
 |
| |
| Article Discussion: Visual Studio .NET 2008 - Speed Up XAML Load Times |
| Robbe Morris posted at 17-Aug-08 10:51 |
 | Original Article |
 |
|
| |
| Try opening your WPF application solution / project |
| Peter Bromberg replied to Robbe Morris at 17-Aug-08 03:49 |
 | In Expression Blend. It has a much more performant designer with lots better features, Drag-drop of controls from the toolbox, etc.
When you save the Blend work you can switch back to Visual Studio, let it reload the changed files, and all will be well.
You can add Blend to the "Open With" context item. |
 |
|
| |
| Speaking of that |
| Robbe Morris replied to Peter Bromberg at 17-Aug-08 03:58 |
 | How do you add Blend to the Open With context item? |
 |
|
| |
| Right click on your XAML file in Solution Explorer |
| Peter Bromberg replied to Robbe Morris at 17-Aug-08 04:02 |
 | and choose the "open with" context item. You'll see an "ADD" button. This will allow you to browse for the blend.exe and select it. Also, if you haven't done so, I would recommend installing Visual Studio 2008 Service Pack 1. It has improvements to the XAML designers. |
 |
|
| |
| Will do |
| Robbe Morris replied to Peter Bromberg at 17-Aug-08 04:04 |
 | I have SP1 and the performance still sucks. I'll see if blend makes this any less problematic. |
 |
|
| |
| There is no question that Microsoft's XAML designers need work. |
| Peter Bromberg replied to Robbe Morris at 17-Aug-08 04:16 |
 | In Silverlight, the XAML design surface is "brain dead" - all it can do is render what you have done in code view. Blend is a lot better (if it wasn't, certainly nobody would ever buy it). |
 |
|
| |
| Xaml designer speed problem |
| Srinath M S replied to Peter Bromberg at 17-Oct-08 09:13 |
| The toolbox designers seem to save the layouts at a particular location in our local profile folder, which seem to get corrupted due to a Visual Studion Environment Crash.
XAML Designers too have the same problem. I could speed it up on my machine by deleting the contents of the layouts folder location at
C:\Documents and Settings\[%userprofile]\Local Settings\Application Data\Microsoft\VisualStudio\9.0
It has speeded the designer loading and the toolbox loading too.
http://www.eggheadcafe.com/forumpostsubmission.aspx?topicid=1&forumpostid=10048543 |
 |
|
| |
| Speed up XAML designer |
| Srinath M S replied to Robbe Morris at 24-Oct-08 11:14 |
| The toolbox designers seem to save the layouts at a particular location in our local profile folder, which seem to get corrupted due to a Visual Studion Environment Crash. XAML Designers too have the same problem. I could speed it up on my machine by deleting the contents of the layouts folder location at C:\Documents and Settings\[%userprofile]\Local Settings\Application Data\Microsoft\VisualStudio\9.0 It has speeded the designer loading and the toolbox loading too. |
 |
|