You can directly enter an indirect reference in the reference chooser to provide access to theme properties data.
Use the following syntax.
This reference is to be used in builder inputs that define user interface (UI) elements. For example, in the Paging Buttons builder, you can specify a Normal button image
input. Instead of specifying a path to a file, you can use an indirect reference to a theme property that defines the file. In this way, you can centralize definitions for references to UI elements and eliminate the need to modify multiple inputs in multiple builders if a change in elements is required.
You can establish a centralized reference by including in the WebApp theme properties file a definition similar to the following example.
This definition specifies the path in the WebContent
folder to your image file. Ensure that the property is unique in the themes files.
Take advantage of the definition by entering the indirect reference in builder inputs. For example, in the Paging Buttons builder Normal button image
inputs, enter the following reference.
At model generation time when the WebApp is constructed, the normal.jpg
image is included on all pages whose inputs contain the indirect reference.
This syntax is available only to builder inputs that accept single values. It is not available to inputs that accept a list of values.
Parent topic: The reference chooser: wpf7