Creating a WPF Window Target

Use the WPF Window Application target wizard to create a WPF Window Application target.

You can create a new WPF Window Application target, or convert a PowerBuilder Classic Win32 or Windows Forms target.

  1. Select File > New from the menu or click the New button in the toolbar.
  2. Expand the Target folder. Select the WPF Window Application target and click Next.
  3. On the Create the application page, select one of these options and click Next:
    • Create a new application and target
    • Convert an existing Win32 or Windows Forms target to WPF
      Note: If the existing target was created in an earlier version of PowerBuilder, upgrade it in PowerBuilder Classic by following the guidelines in the sectionUsers Guide>Working with Libraries>Migrating targets and the current Release Bulletin>Migration Information. You can then convert the upgraded version in PowerBuilder .NET using this procedure.

      Migration to PowerBuilder .NET automatically makes some changes that might also require manual refactoring of application scripts. For example, hyphens are not allowed in identifiers in WPF applications, so by default the migration changes hyphens to the word "dash". If these identifiers are referenced in a script, you must modify the references. You must also refactor applications that rely on API calls using control handles before migrating them to PowerBuilder .NET.

  4. (Optional) If you are creating the target from scratch, you can choose to generate an initial Window object on the "Specify an object to create" page.
  5. Follow the remaining instructions in the WPF Window Appliation Target wizard and click Finish.

    You can skip wizard pages and create a target with just the values you have provided by clicking Finish any time it is enabled. You can add or change values at a later time in the Properties Pages dialog box for the target and in the Project painter for target projects.

The New WPF Target wizard creates a target, as well as a project object, which lets you deploy the application.

Next
After you create a WPF target, use the Project painter to: