Chapter 35. The System.Web.UI.Design Namespace

The System.Web.UI.Design namespace contains types used for providing design-time support for the Web Forms user interface. These types fall into four basic categories: type converters, UI type editors, designers, and other helper classes (such as classes that provide ASP.NET data binding support). Type converters allow control properties to be converted to and from base data types, which allows them to be displayed and edited in the Properties Window. Type converters also extend runtime support, but they are only used implicitly and never instantiated directly. Type converter classes derive from System.ComponentModel.TypeConverter and end with the word “Converter” by convention. Unlike type converters, UI type editors are used exclusively in the design environment. They provide the custom user interface that is used to select special property values from the Properties Window (like a control’s color). UI type editors derive from System.Drawing.Design.UITypeEditor and end with the word “Editor.”

Designers help provide the design-time representation of a control. They derive from System.ComponentModel.Design.ComponentDesigner and end with the word “Designer.” The System.Web.UI.Design namespace contains the base designers used for ASP.NET controls. ASP.NET controls use different designers than Windows Form controls because they are rendered by using HTML rather than Windows-specific GDI+ functions. For custom designers that extend specific ...

Get ASP.NET in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.