hub.eb?material_id=43&track_id=281

Property Sets


A Property Set defines a set of default properties for a type of Control that capture its style and behaviour. Multiple Property Sets can be defined for each type of Control.

You can create a Property Set by saving the properties of an existing Control using the Property Set menu in the Properties View.

Inheriting From Property Sets

Alternatively, you can create a new Property Set in a Presentation Template by right-clicking on a Control in the Property Set tree and selecting Create New Property Set. From here you can also mark a Property Set as the Control's default. All Controls are automatically linked to its default Property Set.

A Control can use a Property Set in two ways:

  • Linking to a Property Set means the Control will be updated with new properties if it changes.
  • Loading a Property Set simply copies the properties to the Control.

Any property inherited from a Property Set can be overridden locally on the Control. Locally overridden properties are indicated by a small yellow arrow next to the property name and won't be updated if the Property Set changes. Inherited properties are indicated by a small blue arrow next to the property name.

Clicking on the small arrow gives you the option to switch between local and inherited property values.

Inheriting From Property Sets

There are three more useful Property Set commands available in the Property Set menu for a Control:

  • Convert to local properties unlinks the control from the Property Set.
  • Revert control properties removes all local overrides.
  • Clear control propeties clears all property values and unlinks the Control from the Property Set.

Steps


1

Create a Form and a Theme. Link the Form to the Theme.

Create a Panel Control on a Page and change the background colour to blue.

Right-click on the Panel Control and under Property Set, select Save property set. Call the Property Set bluePanel.

2

Open the Presentation Template in the Theme and find the bluePanel Property Set.

Right click on it and select Mark as Default.

Save the Presentation Template.

3

Return to the Form and add a new Panel Control.

Note that it also has the blue background.

4

In the Presentation Template, change the bluePanel Property Set to have a red border.

Save the Presentation Template.

Return to the Form and note that the Panel Controls now have borders.

5

Stop bluePanel being the default Panel Control Property Set by right-clicking and selecting Unmark as Default.

Save the Presentation Template.

Current Module

Related