Creating a WPF Window Target

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

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

  1. Click File > New in the menu or the New button in the toolbar.
  2. In the New wizard, expand the Target folder. Select the WPF Window Application target and click Next.
  3. In the Create the application page, select one of these options and click Next:
    • Create a new application and target
    • Convert an existing PowerBuilder Classic 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 Migrating targets section of the Users Guide and the Migration information section of the current Release Bulletin. 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 these are changed to the word "dash" by the migration process. If these identifiers are referenced in a script, you must modify the references, since migration does not make changes to any of the scripts that you entered. You must also refactor applications that rely on API calls to control handles before migrating them to PowerBuilder .NET.

  4. Follow the remaining instructions in the WPF Window Application Target wizard and click Finish.

    You can click Finish any time it is enabled to skip wizard pages and create a target with just the values you have provided. 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 and a project object, which lets you deploy the application.