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.
|You can only set a Window, Page, or UserControl item as the startup document in a projectyou cannot set a resource dictionary or a user control (.dll) as the startup document.|
To set the startup document
- 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.
- On the Project menu, click Test Project, or press F5.
- 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.