The ShinyDesign.Design namespace provides types related to the design-time settings of properties.

The TypeDescriptorSurrogate class enables the extended property appearances available on the PropertyGridEx control to be used on the PropertyGrid control (with some exceptions). For more information, see the class remarks.

The [Name] attribute enables properties and enumeration fields to be displayed with friendly names, including spaces and special characters typically considered tokenizers in programming languages.

The [Tab] attribute enables properties to be declaratively set on other property tab pages (besides the primary) when using the PropertyGridEx control.

Remarks

Libraries utilizing the [Name] and [Tab] attributes should consider creating derived classes that provide access to resources within the defining assembly. These attributes allow straightforward localization capabilities; for more information, see their class pages.

Classes

  ClassDescription
NameAttribute
When applied to a property or field, specifies the "friendly name" that the property will register as.
TabAttribute
Specifies the name and image of the tab for the PropertyGrid item.
TypeDescriptorSurrogate
This type implements the ICustomTypeDescriptor interface, and allows any object annotated with the special design attributes to be designed within a standard PropertyGrid control and appear as if it is contained within a PropertyGridEx control, except without multiple property tabs.