Token | Comments |
---|---|
NAMESPACE | Specifies the namespace within which to create the class. |
The Symphony_CollectionFromFileWithMethods (version 3.2) generates a collection class and the associated code to populate the collection from a data file. The created class is a populated collection of Symphony.Conductor.Content.SelectionItem. Each collection item contains a ItemValue (or ItemStringValue for alpha based collections) and Description. In addition it provides a method (SelectMethod()) that returns the complete collection.
The ItemValue/ItemStringValue property can be data-bound to the SelectedValuePath of a ComboBox/drop-down list. The Description is the element displayed (DisplayMemeberPath for a WPF ComboBox) within the visible list.
Token | Comments |
---|---|
NAMESPACE | Specifies the namespace within which to create the class. |
Create standard collection | |
---|---|
codegen e -r -s PART -t Symphony_CollectionWithMethods_v3_2 -o %ROOT%ControlLibrary\Content -n ControlLibrary.Content |