Create a project for a Silverlight 2 application

Expression Studio 2.0
This page applies to Silverlight 2 projects only

You can create a Microsoft Silverlight 2 project in Microsoft Expression Blend 2 with Service Pack 1 installed. In Expression Blend, a Silverlight 2 project builds a Silverlight 2 application and supporting files, which include an HTML test page named Default.html that will load your application in a browser window.


The HTML test page is overwritten every time that you build or test your project. If you want to modify the test page for your own use, save it to a different location first.

  1. On the File menu, click New Project (CTRL+SHIFT+N).

  2. In the New Project dialog box, under Select a project type, select Silverlight 2 Application.

  3. Next to Name, enter a name for your project. This will become the name of the project folder and the name of your application's namespace.


    Namespace is a Microsoft .NET Framework term for the name that identifies your application to other applications. For more information, see Understanding and Using Assemblies and Namespaces in .NET.

  4. Next to Location, verify the path where you want to save your project. To select a different folder, you can click Browse.


    The Location box is available only if the Save new projects to the Expression Blend Projects folder (or a specified folder) option is selected in the Project tab of the Options dialog box (Tools menu). Otherwise, projects are stored in memory until you click Save All on the File menu.

  5. In the Language drop-down list, select the programming language for your code-behind files (Visual Basic or Visual C#).

  6. Click OK.

    A Silverlight 2 project is created and opened for editing. You can now begin creating content (draw shapes and controls) in the main page (Page.xaml) of your project.

    For a list of the files that are generated by Expression Blend 2 and a description for each file, see "The files in a Silverlight 2 project" section in the Overview of Silverlight 2.

Next steps

Community Additions