Create a project for a Silverlight 2 application
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
On the File menu, click New Project (CTRL+SHIFT+N).
In the New Project dialog box, under Select a project type, select Silverlight 2 Application.
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.
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.
In the Language drop-down list, select the programming language for your code-behind files (Visual Basic or Visual C#).
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
- You can design the user interface of your Silverlight 2 application by adding objects to the main document (typically Page.xaml). For more information, see Draw a shape or path in your Silverlight 2 project and Draw a control in your Silverlight 2 project.