如何添加Windows窗体设计器支持自定义的控制? [英] How do I add Windows Form Designer support to a custom control?
问题描述
我是新来的自定义控件的概念,直到最近,我的经验是有限的延长已经存在。
I am new to the concept of custom controls, and until recently my experience has been limited to extending controls that already exists.
在Visual Studio中,我该如何在设计下拉菜单和表格的形式增加对我的自定义控件?
In Visual Studio, how do I add support for my custom controls in the form of Designer Drop Downs and forms?
下面这张图片识别的那种成分,我希望创建我的自定义控件。
This picture below identifies the kind of components I am wishing to create for my custom controls.
推荐答案
我建议你阅读的扩展设计支持 MSDN上。在这种情况下,你想有一个自定义设计为你的类型,它可以通过的 DesignerAttribute 的装饰类型。有关详细信息,请参见定制设计师。
I'd recommend reading Extending Design Support on MSDN. In this case, you want a custom designer for your type, which can be specified via the DesignerAttribute decorating the type. For details, see Custom Designers.
这篇关于如何添加Windows窗体设计器支持自定义的控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!