Add two labels to the Px page's CanvasPane. Give them the text "My Label One" and "My Label Two".Notice that in the Widget Tree side bar, the labels now have different names: “Label” and “Label1”. With Preserve Identities set to true, widgets in Px pages have names. “Label” and “Label1” are the auto-generated names given to label slots, which you can edit.
Right-click the label named “Label”.Notice that there is now a Rename command.
Right-click the label named “Label1”, select Rename and change its name to “MyLabelTwo”. Notice that their new names now appear in the Widget Tree side bar.
Right-click them and select to link their background properties to the labelBackground Px Property, as done before. They should both turn light green.
Save the Px page and under the Px Editor menu, select Goto Source XML. Compare the saved XML with the previous example:Notice that in source XML, the <Label> tags now have their name attributes set to “MyLabelOne” and “MyLabelTwo”, which you specified by using the Rename command. In addition, those slot names are referenced by the Px Properties defined in the <properties> tag.