Click or drag to resize

PlaceholderModelItemId Property

References the ID of a declared item.

Namespace:  Livit.Learn.Model
Assembly:  Livit.Learn.Model (in Livit.Learn.Model.dll) Version: 0.0.0.0
Syntax
C#
public string ItemId { get; set; }

Property Value

Type: String
Remarks

The ItemId references a previously declared item when creating elements inside a Placeholder, or as part of a condition.

Examples
The item is declared at the beginning of the Xml:
XML
<Items>
  <Element Id="PipetteItem" SourceId="Pipette" />
</Items>
And is created using the ItemId:
XML
<Items>
  <CreateItem Target="PipettePlaceholder" ItemId="PipetteItem" />
</Items>
The ItemId can also be used inside a Placeholder to instantiate the item inside the Placeholder upon creation:
XML
<Placeholder Id="MyPlaceholder" ItemId="Myitem" />
See Also