The .NET Framework 2.0 extends the .NET Framework 1.1 with new features, improvements to existing features, and enhancements to design-time development. This topic provides a summary of new designer features.
Toolbox Improvements
The Toolbox in Visual Studio now organizes components and controls into categories. It is also automatically populated with your project's components and controls.
DesignerAction Support
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 DesignerActionItem can be displayed in the smart-tag panel and also in the shortcut menu associated with a component or control. The DesignerActionList class represents the main point of interaction for developers wanting to add smart-tag support to their custom components and controls. For more information, see How to: Attach Smart Tags to a Windows Forms Component.
Designer Layout Assistance for Windows Forms
Improved layout support is now available for the run time and design environments.
Design Environment
Run Time
Default Interface Implementations
Many of the interfaces specifying designer infrastructure now have default implementations which you can extend. The following table shows a list of the base classes along with their corresponding default implementations.
Designer Base Class Implementations
The following table shows the classes that implement designer infrastructure that are now available for you to use and extend.
Designer Services
The designer infrastructure offers an expanded set of designer services to help you build a rich design experience for your customers. For more information, see Design-Time Architecture.
Designer Appearance and Behavior Factoring for Windows Forms
TypeDescriptor Extensions
The TypeDescriptionProvider class implements extensibility for the TypeDescriptor class. This enables a number of advanced scenarios, including instance substitution, metadata substitution, attribute redirection, and target substitution and shadowing.
For more information, see Type Descriptor Overview.
Generic Undo/Redo Support
The UndoEngine class provides generic undo/redo support for property value changes on components. The DesignerTransaction class enables transactional processing on discrete work units that you can commit or roll back. You can make a series of changes to your components, then accept or cancel them all at once.
Code Examples
See Also