PropertyGrid - ExpandableObjectAttribute behavior

Apr 19, 2012 at 3:47 PM

I think a complex property (all NON simple types, besides System.String) should automatically be expandable; UNLESS

Option A:  with the ExpandableObjectAttribute, add a property: public bool IsExpandable {get; private set;} (set in ctor). default to true.
Option B:  add something similar to System.ComponentModel.DesignOnlyAttribute or DesignTimeVisibleAttribute; except maybe call it RunTimeVisible, or what have you.

As far as I know, this is the way MSFT does it.  In other words, all properties are editable UNLESS they have these attributes.  (Open All, Close Specified.)