Step 3 - Add content to the application¶
In this step of the tutorial you add more content to the Home node to learn how Page Host nodes handle navigation of their subpage nodes.
Add content to the Home node¶
In this section you convert the Page node Home to a Page Host node and add two more Page nodes to the Home application.
Page Host nodes keep track of the currently active Page or Page Host node within their scope. When you activate a Page Host node, that Page Host node automatically activates the currently active Page or Page Host node in its scope. In other words the Page Host node remembers and restores its state during activation to the state before it was deactivated.
To add content to the Home node:
In the Pages right-click the Home node and select Convert to Page Host.
In the Pages at the bottom of the Home node click
twice to create two child Page nodes under the Home node, and name them Recent and Favorite.
From the Assets drag to the Pages window:
Recent texture to the Recent node
Favorite texture to the Favorite node
In the Node Tree drag the Home_Page node above the Page nodes Recent and Favorite. This way you make Kanzi render the Recent and Favorite nodes on top of the Home_Page node.
In the Node Tree select the Image nodes Recent and Favorite, in the Properties add the Render Transformation property, and set the Render Transformation Translation property fields to position the Image nodes in the application user interface next to the directions information:
X to 574
Y to 148
When you select the Recent and Favorite nodes in the Pages window, you see their content in the Preview.
See also¶
To find out more about the Page and Page Host nodes, see Using the Page and Page Host nodes.
To find out more about working with the state managers, see Using state managers.
To find out more about working with triggers and actions, see Triggers.
To find out more about working in the Preview, see Editing your application in the Preview.
to position the
to disable snapping to nodes and guides.
to enter the