<p>您需要编写自己的类型编辑器。您可以将其视为一个用户控件,因为当您编写自己的类型编辑器时,您将提供在属性网格编辑属性时出现的UI控件。因此,您可以创建一个可以执行任何操作的类型编辑器,这意味着如果您有第三方编辑器控件,则可以将其作为类型编辑器的一部分。在</p>
<p>一些帮助您入门的资源:</p>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/ms171839.aspx" rel="nofollow noreferrer">User Interface Type Editors Overview</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/ms171840.aspx" rel="nofollow noreferrer">Walkthrough: Implementing a UI Type Editor</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/system.drawing.design.uitypeeditor.aspx" rel="nofollow noreferrer">UITypeEditor Class</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/53c49eck.aspx" rel="nofollow noreferrer">How to: Implement a UI Type Editor</a></li>
<li><a href="http://www.codeproject.com/KB/miscctrl/UITypeEditorsDemo.aspx" rel="nofollow noreferrer">Rich Design Time Editing with UITypeEditors (VB.NET)</a></li>
<li><a href="http://www.codeproject.com/KB/cpp/DropDownPropertyEditor.aspx" rel="nofollow noreferrer">Creating Property Editors in DesignTime for VS.Net Easily (UITypeEditor Helper)</a></li>
<li><a href="http://www.codeproject.com/KB/tabs/PropertyGrid.aspx" rel="nofollow noreferrer">Using PropertyGrid</a></li>
</ul>