Designing User Interfaces for Client Framework Applications

Before creating an interface for AB Suite Client Framework applications, the IGraphicalInterface node must be added to an ispec, an event, an insertable, a copyispec, a copyevent, or a class. These elements are exposed as a set of corresponding DataModels that can then be used by various popular client development tools to create desktop, web, mobile, and service based applications.

Note: The IGraphicalInterface node is added automatically when you add an ispec, an event, an insertable, a copyispec, or a copyevent. However, the IGraphicalInterface node is not added automatically when you add a class. You must add the IGraphicalInterface node to the class manually. Refer to Adding IGraphicalInterface for Client Framework Applications for more information.

When the IGraphicalInterface interface node is added to the ispec or the class, the PresentationType property of the ispec or class is set to Graphical and is read-only. You can add attributes or drag attributes from an ispec definition to the ispec or class with the IGraphicalInterface interface node. The DataViewModel definitions and an empty XAML View appears for each ispec or class, which has an IGraphicalInterface interface node, when you generate the necessary Access Layer projects from the Build menu. For WP/XAML client type, the Data Sources project is also generated. You can now design the XAML View for the ispec or class that has the IGraphicalInterface interface node.

Note: The Data Sources are created in the <ApplicationName.TechnologyFolderName>.Views project.

You can now design the user interface by using the Microsoft WPF Designer in Visual Studio. To design the user interface open the Solution Explorer window, and then double-click the <IspecName or ClassName>.xaml file in the Stereotyped or Classes folder.

Note: You can design the user interface by using Microsoft WPF Designer in Visual Studio if you have set the Client Technology option to WPF.

This opens the View in the WPF Designer window along with the Common WPF Controls Toolbox and the All WPF Controls Toolbox.

You can now add attributes to the View from the corresponding Data Source or add controls from the Toolbox to design Views for a specified client technology. To access the Data Sources window, on the Views menu, point to Other Windows, and then click Data Sources.

Note: Always ensure that the View matches the corresponding Data Source from where you add the attributes.

Visit the Unisys Product Support website at www.support.unisys.com for information on designing the Views for a WPF application.

Manipulating Graphical User Controls

The following points highlight the usage of WPF Designer interface and manipulation of various graphical user controls: