Skip to Content
.NET Windows® Forms Custom Controls
book

.NET Windows® Forms Custom Controls

by Richard Weeks
January 2002
Intermediate to advanced
288 pages
5h 48m
English
Sams
Content preview from .NET Windows® Forms Custom Controls

Designer Attributes

Attributesplay a large role in every facet of .NET, from XML serialization to control development. The PropertyGrid relies heavily on custom attributes for object properties that it uses to determine the default value, determine whether the property is browsable, and make many other choices. Attributes are used to control the PropertyGrid and the code serializer, and for defining the UITypeEditor for a property, the designer for a component, and the category for a designer, among other things. The common case for attributes deals with interaction with the PropertyGrid and specifying the category, description, browsable, and type converter attributes. Figure 5.3 shows how attributes are used to control the PropertyGrid.

Figure ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro .NET 5 Custom Libraries: Implementing Custom .NET Data Types

Pro .NET 5 Custom Libraries: Implementing Custom .NET Data Types

Roger Villela
Professional C# 5.0 and .NET 4.5.1

Professional C# 5.0 and .NET 4.5.1

Christian Nagel, Jay Glynn, Morgan Skinner

Publisher Resources

ISBN: 0672323338Purchase book