Visual Studio 2008 Silverlight Project Support

The official Silverlight web site (http://Silverlight.net) allows you to download project templates for Visual
Studio 2008 / C# Express. Once installed, you can select a new
Silverlight Application project (using C# or
VB). You can also build
Silverlight Class Library project. This can be helpful when building custom
controls for your Silverlight applications. You will examine how to build custom controls later in the class.






















When you select the Silverlight Application project template, you will need to specify how the plug-in will
be hosted during development. Visual Studio will automatically show you the following dialog once you click
the OK button of the New Project dialog.




















The first radio button will instruct VS08 to host your Silverlight plug-in within an ASP.NET web page, using
Silverlight-centric web controls. VS08 will add this web project to your Silverlight solution.

As an alternative, the second radio button instructs VS08 to generate a simple HTML file to view the plug-in
during development. This dynamic page generation is ideal for quick tests. Once the Silverlight plug-in has
been completed, you can incorporate it’s functionality into a new ASP.NET web application.  

The Silverlight designer allows you to author XAML descriptions of your application’s UI. You will find
this editor supports the expected auto-completion, IntelliSense functionality and the automatic generation of
event handlers. You will learn about the grammar of XAML later in this chapter.
Visual Studio Silverlight Support
Table of Contents
Copyright (c) 2008.  Intertech, Inc. All Rights Reserved.  This information is to be used exclusively as an
online learning aid.  Any attempts to copy, reproduce, or use for training is strictly prohibited.
Courseware
Training Resources
Tutorials
Services