A Page is similar to a borderless Window. It doesn’t provide its own decorations (border, title bar, and so forth), but instead relies on its container to provide those elements.
Often a Page is hosted by a web browser, although the WPF Frame control can also display Page objects.
The following sections explain how you can use Page objects to build WPF applications.
To make a XAML Browser Application (XBAP, pronounced ex-bap), select the File menu’s New Project command to display the New Project dialog box. On the Visual Basic ⇒ Windows tab, select WPF Browser Application, enter a project name, and click OK.
The new application begins with a single Page class named Page1. You can view and edit this Page exactly as you would view and edit a Window. Open the Solution Explorer and double-click the Page1.xaml entry to edit the Page’s controls. Double-click the Page1.xaml.vb entry to edit the Visual Basic code behind the Page.
To run the application, open the Debug menu and select Start Debugging. Internet Explorer should open and display the initial Page. Visual Studio is nicely integrated with this instance of Internet Explorer so you can set breakpoints in the code to stop execution and debug the code just as you can debug a Windows Forms application or a WPF Window application.