Creating a New WPF Window

Create a WPF Window from scratch.

Note: At any point during the creation process (if it is enabled) to create the window by accepting the default settings for the later steps.
  1. Open the New dialog box.
  2. In the PB Object node, select WPF Window.
  3. Click Next.
  4. Enter a title and a name for the window. Select the library in which to save the window. Click the Next button.
  5. Select the layout for the window, then click Next.
    Option Description
    Canvas Defines an area within which you can explicitly position child elements by specifying coordinates relative to the canvas area.
    Dock Panel Defines an area within which you can arrange child elements either horizontally or vertically, relative to each other.
    Grid Defines a flexible grid area consisting of columns and rows. Use the Margin property to precisely position child elements in a grid.
    Stack Panel Arranges child elements into a single line that can be oriented horizontally or vertically.
    Wrap Panel Places child elements in sequential position from left to right, breaking content to the next line at the edge of the containing box.
  6. (Optional) Specify a namespace, namespace shortcuts, and any interfaces, then click Next.
  7. Review the WPF window characteristics, then click Finish.
The Window painter opens. The new window appears in the Window painter's Layout view and the XAML defining the Window shows in the XAML view.