search
Japanese Chinese Nederlands Espanol Italiano Deutsch Francais Twitter Rss Feeds
MicrosoftArticlesForumsFAQs
C# .NET
VB.NET
Visual Studio .NET
ADO.NET
Xml / Xslt
VB 6.0
.NET CF
GDI+
LINQ
Deployment
Security
FoxPro
Silverlight / WPF
Entity Framework
RIA Services

Web ProgrammingArticlesForumsFAQs
JavaScript
ASP
ASP.NET
Web Services

Non-MicrosoftArticlesForumsFAQs
NHibernate
Perl
PHP
Ruby
Java
Linux / Unix
Apple
Open Source

DatabasesArticlesForumsFAQs
SQL Server
Access
Oracle
MySQL
Other Databases

OfficeArticlesForumsFAQs
Excel
Word
Powerpoint
Outlook
Publisher
Money

Operating SystemsArticlesForumsFAQs
Windows 7
Windows Server
Windows Vista
Windows XP
Windows Update
MAC
Linux / UNIX

Server PlatformsArticlesForumsFAQs
BizTalk
Site Server
Exhange Server
IIS

Graphic DesignArticlesForumsFAQs
Macromedia Flash
Adobe PhotoShop
Expression Blend
Expression Design
Expression Web

OtherArticlesForumsFAQs
Subversion / CVS
Ask Dr. Dotnetsky
Active Directory
Networking
Uninstall Virus
Job Openings
Product Reviews
Search Engines
Resumes

 

Visual Studio .NET 2008 - Speed Up XAML Load Times


By Robbe Morris
Printer Friendly Version
View My Articles
41 Views
    

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 Morris
Robbe has been a Microsoft MVP in C# since 2004. He is also the co-founder of EggHeadCafe.com which provides .NET articles, book reviews, software reviews, and software download and purchase advice.

button
Article Discussion: Visual Studio .NET 2008 - Speed Up XAML Load Times
Robbe Morris posted at Sunday, August 17, 2008 10:51 AM
Original Article
 

Try opening your WPF application solution / project
Peter Bromberg replied to Robbe Morris at Sunday, August 17, 2008 3:49 PM

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 Sunday, August 17, 2008 3:58 PM
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 Sunday, August 17, 2008 4:02 PM

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 Sunday, August 17, 2008 4:04 PM
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 Sunday, August 17, 2008 4:16 PM
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
[)ia6l0 iii replied to Peter Bromberg at Friday, October 17, 2008 9:13 AM
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
[)ia6l0 iii replied to Robbe Morris at Friday, October 24, 2008 11:14 AM
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.