Click here to monitor SSC

Laila Lotfi

.NET tools Brand Manager & Simple-Talk Editor

Making the WPeFfort

Published Friday, March 26, 2010 6:27 PM

Microsoft Visual Studio 2010 will be launched on April 12th.

The basic layout looks pretty much as it did, so it is not immediately obvious on first inspection that it was completely rewritten in the Windows Presentation Foundation (WPF). The current VS 2008 codebase had reached the end of its life; It was getting slow to initialize and sluggish to run, and was never going to allow for multi-monitor support or easier extensibility. It can't have been an easy decision to rewrite Visual Studio, but the gamble seems to have paid off. Although certain bugs in the betas caused some anxiety about performance, these seem to have been fixed, and the new Visual Studio is definitely faster.

In rewriting the codebase, it has been possible to make obvious improvements, such as being able to run different windows on different monitors, and you only being presented with the Toolbox controls and References that are appropriate to your target .NET version. There is also an IntelliTrace debugger, and Intellisense has been improved by virtue of separating a 'Suggestion Mode' and 'Completion Mode' (with its 'Generate From.' 'Highlight References.', and 'Navigate to...' features). At the same time, there has been quite a clearout; Certain features that had been tucked away in the previous versions, such as Brief or Emacs emulation support, have been dropped. (Yes, they were being used!)

There are a lot of features that didn't require the rewrite, but are welcome. It is now easier to develop WPF applications (e.g. drag-and-drop Databinding), and there is support for Azure. There are more, and better templates and the design tools are greatly improved (e.g. Expression Web, Expression Blend, WPF Sketchflow, Silverlight designer, Document Map Margin and Inline Call Hierarchy). Sharepoint is better supported, and Office apps will benefit from C#'s support of optional and named arguments, and allowing several Office Solutions within a Deployment package.

Most importantly, it is a vote of confidence in the WPF. VS 2010 is the essential missing component that has been impeding the faster adoption of WPF. The fact that it is actually now written in WPF should now reassure the doubters, and convince more developers to make the move from WinForms to WPF. In using WPF, the developers of Visual Studio have had the clout to fix some issues which have been bothering WPF developers for some time (such as blurred text). Do you see a brighter future as a result of transferring from WinForms to WPF? I'd love to know what you think.

Cheers,

Laila

by Laila

Comments

 

Phil Factor said:

It seems almost a shame, from  the aspect of software archeology, to see the end of the old code-base. There were evidently some strange old bits an pieces tucked away in Visual Studio. There is a rumor  I've heard that a programmer was reverse-engineering a part of Visual Studio in order to find a way of doing a plug-in, and came across parts of an old version of MS Word. Is there any truth in the legend?
March 27, 2010 7:25 AM
 

mrwcjoughin said:

I've been using WPF for a few months. Coupled with the Entity Framework, it is awesome.
I was quite happy that we weren't finished with the project yet, as upgrading it to 2010 has seen SIGNIFICANT speed increases in both WPF and the Entity Framework.
The HTML-like nature of WPF makes it a dream to use and make fluid user interfaces.
I won't go back to winforms, ever :)
March 29, 2010 2:15 AM
 

a Đonny said:

(I like WPF and I like VS2010)
VS 2010 actually show some weaknesses of WPF as well:
It looks differently than rest of OS; No floating, bottom/left/right toolbars; Toolbars/menu editing is real pain
March 29, 2010 1:15 PM
 

r_honey said:

Well, having already made a switch to WPF sometime earlier, WPF is definitely worth the shot.

However, there are a couple of serious issue in my opinion, which might slow its adoption.
First being the learning curve. Even for experienced developers, the sheer volume of classes across WPF and their intricacies should be sufficient to keep many a weak-hearted at bay for sometime.

They there's the issue of productivity. Now how easy was it to create a MenuItem in Win Form, and assign it in Image or Shortcut. Compare this to WPF's KeyBinding, CommandBinding and what not, you have a recipe for a dish few would be able to digest that easily. Win forms was a breeze to learn even for the first-timers, and WPF is a pain to learn even for the experienced!!!
April 2, 2010 3:14 PM
You need to sign in to comment on this blog

About Laila

I work for the .NET Tools division at Red Gate. I enjoy talking to .NET developers, technical leads, development managers, etc, to understand how we can help serve you better - how we can build tools and provide you with resources/information that make a difference to your work. Please do get in touch on editor@red-gate.com to let me know what topics you'd like to learn more about and I'll do my best to get content commissioned around what interests you most.
Latest articles
Checking Out SQL Backup Pro 7’s New Automatic Backup Verification
 Wouldn't it be great to offload the daily chore of checking the integrity of your production... Read more...

Chuck Lathrope: DBA of the Day
 Chuck Lathrope was a finalist for the Exceptional DBA of the Year award in 2009. We contacted him to... Read more...

Backups, What Are They Good For?
 Pixar recently confessed, in an engaging video, that Toy Story 2 was almost lost due to a bad backup,... Read more...

C# Async: What is it, and how does it work?
 The biggest new feature in C#5 is Async, and its associated Await (contextual) keyword. Anybody who is... Read more...

SQL Server 2012 AlwaysOn
 SQL Server AlwaysOn provides a high-availability and Disaster-recovery solution for SQL Server 2012. It... Read more...