See Also: DesignerActionList Members
The DesignerAction feature enables components and controls to display context-sensitive information and commands. The DesignerAction feature can be thought of as a replacement for designer verbs, because a System.ComponentModel.Design.DesignerActionItem can be displayed in the smart tag panel and also in the shortcut menu associated with a component or control. The System.ComponentModel.Design.DesignerActionList class represents the main point of interaction for developers who want to add smart tag support to their custom components and controls.
System.ComponentModel.Design.DesignerActionList is the base class, derived from by component developers in order to populate a smart tag panel. A smart tag panel represents the menu-like user interface (UI) for smart tags.
This derived class may implement the virtual DesignerActionList.GetSortedActionItems method to return a collection of objects derived from System.ComponentModel.Design.DesignerActionItem. These objects represent the smart tag panel items. Each item is displayed in the panel according to its type. For example, a System.ComponentModel.Design.DesignerActionTextItem is displayed as a static text label. Active panel items, represented by the System.ComponentModel.Design.DesignerActionPropertyItem and System.ComponentModel.Design.DesignerActionMethodItem types, have a corresponding publicly accessible property or method, respectively, that implements the functionality for that item.
For more information about how to add items to the smart tag panel, see the DesignerActionList.GetSortedActionItems method.
Forms and dialog boxes can be displayed by members of the class derived from System.ComponentModel.Design.DesignerActionList. By default, the parent of these windows will be the container window for the smart tag panel. Explicitly parenting these child windows to another service or window may cause smart tags to display improperly.
Smart-tag panels do not support scrolling or paging, so be careful not to populate your panels with many smart-tag items. Too many items may result in the smart-tag panel extending beyond the screen boundary.