WEBfactory 2010

StringPlaceholdersResolver Class

Abstract

Check out this article and learn more details about the WEBfactory 2010 StringPlaceholdersResolver Class.

StringPlaceholdersResolver is the class that makes possible the Dynamic Parameter Exchange and Dynamic Signal Names.

Using the StringPlaceholdersResolver class, one can use dynamic signal names instead of fixed signal names. This increases the reusability of visualization elements.

The StringPlaceholdersResolve allows you to create a control that is not bound to a specific signal name or parameter, but to a placeholder of the signal name/parameter and to replace, at runtime, the placeholder with the needed value (the real signal name/parameter). The same control can be used for multiple signals (if in the same project).

The StringPlaceholdersResolver class can be used in:

  • dynamic variables for individual objects - resulting a highly flexible copy function

  • dynamic variables for grouped objects - resulting a highly flexible copy function

  • dynamic variables for operating windows - resulting reusable operating windows

  • dynamic variables for navigation - resulting reusable visualization windows

This table describes the Standard Placeholders:

Parameter

Placeholder

Description

Notes

ObjectID

[OID]

[OID] placeholder will be replaced at runtime with the value of the ObjectID parameter of the control.

All characters - spaces, special characters, etc. are allowed. ObjectID must not be unique.

Name

[N]

[N] placeholder will be replaced at runtime with the value of the Name parameter of the control.

A name must be necessarily unique. This is a standard property of Silverlight controls. All naming conventions as with .NET variables apply, i.e. no special characters, first character can not be a number, etc.

ParentName

[PN]

[PN] placeholder will be replaced at runtime with the name of the first parent control – e.g. LayoutRoot.

The name of the first parent control (e.g. LayoutRoot)

.NET naming conventions.

ParentControl Name

[PCN]

[PCN] placeholder will be replaced at runtime with the name of the parent UserControl, which in turn encapsulates Controls.

The name of the parent UserControl, which in turn encapsulates Controls.

.NET naming conventions.