Group properties in a custom control

前端 未结 1 745
感动是毒
感动是毒 2021-01-19 13:06

In our IDE, for example, Visual Studio, if we display the properties of a System.Windows.Forms.Button control, we see some properties that expose anoter set of properties. F

1条回答
  •  无人及你
    2021-01-19 13:23

    You need to tell it to use ExpandableObjectConverter (or a custom converter) for StateOfMyCustomControl. In C#, this is:

    [TypeConverter(typeof(ExpandableObjectConverter))]
    public class StateOfMyCustomControl {...}
    

    However you apply attributes in VB, do that ;-p

    Possibly:

     _
    Public Class StateOfMyCustomControl
    ...
    

    0 讨论(0)
提交回复
热议问题