Content Index Search
 

Set a startup document for your project

In a Microsoft® Expression Blend™ project, the startup document is the XAML document that will run first when you test or run your compiled application. While creating your project, you might change the startup document in order to quickly test individual documents, but before publishing your application, remember to set the startup document to your final choice.

Note You can only set a Window, Page, or UserControl item as the startup document in a project—you cannot set a resource dictionary or a user control (.dll) as the startup document.

To set the startup document

  1. Under Files in the Project panel, right-click the document that you want to run first when your application is run, and then click Startup. Alternatively, you can select the startup document by using the Set As Startup command on the Project menu.
  2. On the Project menu, click Test Project, or press F5.
  3. In the Results panel, review the test build process for any errors that may have been returned.
    If you encounter an error, you will have to repair the error before you can successfully build the project. If the test build is successful, your startup document will automatically open in an application window.