Share via


How to: Add an Element Tool

The following procedure demonstrates how to add an element tool, which represents a domain class, into the Toolbox for a generated designer.

To add an element item to a generated designer

  1. In DSL Explorer, expand the Editor node, and then expand the Toolbox Tabs node.

  2. Right-click the node to which you want to add an element item, and click Add New ElementTool.

    A highlighted ElementTool node appears under the Tools node.

  3. In the Properties window, set the Class property to the class that has been established on the diagram.

  4. Set the Name and ToolboxIcon properties to appropriate values.

    Warning

    Icons must be 16 pixels high by 16 pixels wide to appear in the Toolbox.

  5. Optionally, set the values of the remaining properties in the Properties window.

    For information about how to rearrange the order in which the Toolbox items appear in the generated designer, see How to: Configure the Order of Objects in the Toolbox.

See Also

Concepts

Defining Toolboxes in Domain-Specific Language Explorer

Domain-Specific Language Tools Glossary