15.02.2015 Views

C# 4 and .NET 4

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

404 ❘ ChaPTer 16 visuAl studiO 2010<br />

figure 16-30<br />

From this dialog, the Application tab will provide you with the ability to change the version of the<br />

framework that the application is using.<br />

WPf, WCf, Wf, <strong>and</strong> more<br />

By default, Visual Studio 2005 did not allow you to build applications<br />

targeted at the .<strong>NET</strong> Framework 3.0, which was out during the VS2005<br />

lifetime. The default installation of Visual Studio 2005 was targeted only<br />

at the .<strong>NET</strong> Framework 2.0. To start working with the new technologies<br />

targeted at the .<strong>NET</strong> Framework 3.0, you had to do a few extra installs.<br />

The .<strong>NET</strong> Framework 3.0 provided you with access to a class library<br />

for building application types such as applications that make use of the<br />

Windows Presentation Foundation (WPF), the Windows Communication<br />

Foundation (WCF), the Windows Workflow Foundation (WF), <strong>and</strong><br />

Windows CardSpace.<br />

The targeted framework capabilities of Visual Studio 2010 allow you to<br />

build these types of applications using either the .<strong>NET</strong> Framework 3.0,<br />

3.5, or 4.<br />

building WPf applications in Visual studio 2010<br />

One good example of some of the capabilities that the .<strong>NET</strong> Framework 4<br />

brings to Visual Studio is the WPF Application project type (found in the<br />

Windows category). Selecting this project type will create a MainWindow.<br />

xaml <strong>and</strong> MainWindow.xaml.cs file for you to work from. Everything<br />

that is created by default with this project type in the Solution Explorer is<br />

presented in Figure 16-31 (shown here with a searchable Properties dialog).<br />

figure 16-31<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!