Null CategoryControl in PropertyControl?

Aug 17, 2012 at 7:27 PM

Many of my usages of PropertyControl will consist of a single tab with a single category. Is there a way to make the category grouping control go away? You cannot assign null to CategoryControlType because null isn't convertible to the enum. The available values are Groupbox, Expander, and Template. I think I saw a comment from Objo in another thread that said he wasn't sure how to use Template, so I haven't given much thought.

Alternatively, does anyone have an comments on the esthetics of a single grouper, and what its label should be? To me, "misc." doesn't bring anything to the game. Thoughts?

Coordinator
Aug 21, 2012 at 12:59 PM

See the DefaultCategoryName in the DefaultPropertyItemFactory, I think "Misc" is coming from .net reflection?

Agree, it would be nice to hide the category header if all properties belong to the same category. Maybe this should be a flag "HideSingleCategoryHeader"? (simply not adding the Groupbox/Expander to the visual tree)

Sep 4, 2012 at 7:34 PM

I think this would be nice. A single category looks kind of funny.