Developing WPF applications with Visual Studio


Windows Presentation Foundation (WPF) is Microsoft’s preferred technology for writing windows applications for Vista. You can write WPF applications with Visual Studio to run either under Windows XP SP2 or Windows Vista. You can read about WPF in Charles Petzold's new book


Applications = Code + Markup (2006) (ISBN-10: 0735619573)  For some reason, this book isn't listed in either the Barnes & Noble or the Borders Books database, but it's probably on their shelves.


 


Before you write your first WPF program using Visual Studio, you’ll want to download and install these three software packages:


 



  • .NET Framework 3.0 (codename WinFX).

  • Windows SDK for Vista.

  • VS 2005 extensions for .NET Framework 3.0 (codename Fidalgo)

.NET Framework 3.0


.NET Framework 3.0 is the runtime for both WPF and Windows Connection Framework (WCF, codename Indigo). .NET Framework 3.0 ships with Windows Vista.


 


With .NET Framework 3.0  alone, you can write WPF programs using Visual Studio (or even NotePad). In Visual Studio, you won’t see project templates and Intellisense. But you can create an empty project and add references to PresentationCore.dll and other WPF assemblies. By the way, you won’t find them under the .NET tab – You’ll have to browse to the ReferencedAssemblies folder.


 


Once you’ve written and launched a WPF program, the PresentationHost will display the WPF application for you.


Windows SDK for Vista


Windows SDK for Vista adds documentation (large) and Intellisense for WPF . The documentation isn’t integrated into Visual Studio, and there are no project templates.  However, there's an excellent set of samples for you to install.


 


The download page has two options hidden in the Instructions section. Use the Web Install option if you have a high-bandwidth. If you intend to write WPF applications using Visual C# and don’t care about programming against the older Win32 API then set the installation options this way:


 



When installation completes, you'll find the zipped sample files at
C:\Program Files\Microsoft SDKs\Windows\v6.0\Samples


VS 2005 extensions for .NET Framework 3.0


VS 2005 extensions for .NET Framework 3.0 merges the documentation you obtained from the Windows SDK into Visual Studio and adds project templates. WPF assemblies show up in the .NET tab of the Add Reference dialog. This download also adds a XAML designer (codename Cider).


Installation Scenarios


Here’s what you need to write WPF applications in Visual Studio in these scenarios:



  • VS 2005 under Windows XP SP2

  • VS codename Orcas under Windows XP SP2

  • VS 2005 under Vista

  • VS codename Orcas under Vista

VS 2005 under Windows XP SP2


You must install these in order.


1.       .Net Framework 3.0 (Codename WinFX)


http://www.microsoft.com/downloads/details.aspx?FamilyId=10CC340B-F857-4A14-83F5-25634C3BF043&displaylang=en


2.       Windows SDK for Vista


http://www.microsoft.com/downloads/details.aspx?FamilyId=7614FE22-8A64-4DFB-AA0C-DB53035F40A0&displaylang=en


3.       VS 2005 extensions for .NET Framework 3.0 (WCF & WPF), November 2006 CTP
(codename Fidalgo)


http://www.microsoft.com/downloads/details.aspx?FamilyId=F54F5537-CC86-4BF5-AE44-F5A1E805680D&displaylang=en


VS codename Orcas under Windows XP SP2


You must install Windows SDK for Vista


http://www.microsoft.com/downloads/details.aspx?FamilyId=7614FE22-8A64-4DFB-AA0C-DB53035F40A0&displaylang=en


VS 2005 under Windows Vista


You must install these in order.


1.       VS 2005 Team Suite SP1
http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC&displaylang=en


2.       VS 2005 SP1 Update for Windows Vista Beta
http://www.microsoft.com/downloads/details.aspx?FamilyID=fb6bb56a-10b7-4c05-b81c-5863284503cf&DisplayLang=en


3.       Windows SDK for Vista


http://www.microsoft.com/downloads/details.aspx?FamilyId=7614FE22-8A64-4DFB-AA0C-DB53035F40A0&displaylang=en


4.       VS 2005 extensions for .NET Framework 3.0 (WCF & WPF), November 2006 CTP
(codename Fidalgo)


http://www.microsoft.com/downloads/details.aspx?FamilyId=F54F5537-CC86-4BF5-AE44-F5A1E805680D&displaylang=en


VS codename Orcas under Windows Vista


You must install these in order.


1.       VS 2005 Team Suite SP1
http://www.microsoft.com/downloads/details.aspx?familyid=BB4A75AB-E2D4-4C96-B39D-37BAF6B5B1DC&displaylang=en


2.       VS 2005 SP1 Update for Windows Vista Beta
http://www.microsoft.com/downloads/details.aspx?FamilyID=fb6bb56a-10b7-4c05-b81c-5863284503cf&DisplayLang=en


3.       Windows SDK for Vista


http://www.microsoft.com/downloads/details.aspx?FamilyId=7614FE22-8A64-4DFB-AA0C-DB53035F40A0&displaylang=en


This posting is provided "AS IS" with no warranties, and confers no rights.


Skip to main content