Dela via


Create a project for a Silverlight 2 application

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.

Tip

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.

To create a Silverlight 2 project

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

    Dd185513.f60e8b59-50de-4da1-9ba8-722dc5394d9d(en-us,Expression.10).png

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

    Dd185513.c1f53de8-8edc-4ace-87f0-de702852cb7a(en-us,Expression.10).png

  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.

    Tip

    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.

    Note

    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

See also

Concepts

Open an existing Silverlight 2 project

Create a Silverlight 1.0 project