Share via


How to: Create a New WPF Browser Application Project

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

You can create a Windows Presentation Foundation (WPF) application which runs in a browser. This application model is named XAML Browser Application (XBAP). Creating an XBAP project is easy using the Visual Studio IDE.

Note

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

To create a new WPF Browser Application project

  1. Start Visual Studio 2012 RC.

  2. On the File menu, point to New, and then select Project.

    The New Project dialog box appears.

  3. In the Installed Templates pane, expand Visual Basic or Visual C#, and then select Windows.

  4. Above the middle pane, select the target framework from the drop-down list.

  5. In the middle pane, select the WPF Browser Application template.

    Note

    The WPF Browser Application template in the .NET Framework 4 targets the Client Profile by default. For more information, see .NET Framework Client Profile.

  6. In the Name text box, specify a name for the project.

  7. In the Location text box, specify a folder to save the project.

  8. Click OK.

    The WPF Designer for Visual Studio opens and displays Page1.xaml of the project.

    Visual Basic noteVisual Basic Note

    Every executable file that you create with Visual Basic 2005 contains a namespace with the same name as your project. For more information, see Namespaces in Visual Basic.

  9. On the Debug menu, and select Start Debugging.

    A browser window opens and displays the WPF browser application.

    Note

    If a message box appears warning you that script debugging is disabled, click Yes to continue debugging.

See Also

Tasks

How to: Create a WPF UserControl Library Project

How to: Create a New WPF Application Project

Creating a Drawing Application by Using WPF

Concepts

WPF XAML Browser Applications Overview

Other Resources

WPF Designer

How to: Create a C# WPF Application

How to: Create a Sample Project File for a WPF XAML Browser Application

Windows Presentation Foundation