解决方法
您需要使用[TypeConverter(typeof(ExpandableObjectConverter))]来装饰它以获取要在编辑器中显示的子属性.
public struct MyStruct { public int One; public int Two; public int Three; } public class MyEditableClass : Control { [TypeConverter(typeof(ExpandableObjectConverter))] public MyStruct MyProperty { get; set; } = new MyStruct(); }
现在,这些属性可以扩展.