## UI Designer Preferences

Use the UI Designer page of the Preferences to specify whether automatic saves and navigation to event handler source occurs always, never, or only when prompted and to determine the action taken when you double-click on design objects.

Figure 1 - UI Designer Preferences

##### Table 1. UI Designer Preferences—items

Item | Explanation
--- | ---
Automatically save and navigate to event handler source | Controls when UI Designer saves changes when assigning an event handler to an object in the Events view or using the object's context menu. UI Designer needs to save the design in order to generate the source code to handle the event, this option controls when that save action occurs. The options include: Prompt — Ask to save the design before navigating to the event handler source (default). Always — Always save the design before navigating to the event handler source. Never — Do not save the design nor navigate to the event. You must manually save the design to generate the source for the event.
Double-clicking on design objects will | Specify the action UI Designer takes when you double-click an editable object in the design. edit a label (if one exists) — displays an editable text box if the object has an editable label (default) handle the default event (if it exists) — takes you to the object's default event handler
Notify before undoing two-way source synchronization | Controls the appearance of a notification dialog when attempting to perform an Undo operation on a generated file that is out of synchronization with the UI design. When checkmarked, a dialog appears warning you that the files are not in sync. When unchecked, no warning dialog appears.
Generated source file header template location | Enter the path and file name to a file header template file that is used when creating generated files. The default template file, sourceFileHeader.txt includes this information: /* ======================================================================== Name : ${fileName} Author : ${author} Copyright : ${copyright} Description : ======================================================================== */ Which can be edited to include additional information, or use the Browse control to select another file to supply the header information.

##### Related tasks

- Setting UI Designer Preferences