NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Implementing a UI Type Editor

In some situations, a simple value-to-string conversion that allows a property to be displayed as text in the property window might not be adequate. For instance, in the case of a color property, a visual representation is more desirable. A UI type editor allows such a representation. A UI type editor is intended for use with property browsers and other advanced design-time hosts.

Note An Editor attribute must be applied to a property of a control to associate it with a UI type editor.

The implementation of a UI type editor is dependent on the host where it will be supported, the following discussion applies to Win Forms only.

An editor of the type System.Drawing.Design.UITypeEditor is supported by the Win Forms property browser.

To implement a custom UI type editor for Win Forms

A complete sample is provided in the UI Type Editor for Win Forms Sample.