
680
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Chapter 37UI.Design Namespace
37
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 catego-
ries: 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 inter-
face 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 ...