c# - How do I collapse a Category attribute with System.ComponentModel? -
i have number of categories on design time component being expanded default.
i'd have them appear collapsed default, or @ least problematically collapse them before user sees them.
[category("misc")] public int id { // ... }
do need use type converter? docs on pretty sketchy...
i don't think there's viable way this. while can programmatically collapse category in propertygrid
control, you'd need access instance being used visual studio (or whatever editor they're using). far know there's no way control declaratively, e.g. attribute or anything.
it might possible custom uitypeeditor
or something, fragile , need awful lot of effort, , feels kind of thing should left users' preferences anyway.
Comments
Post a Comment