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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -