Hi,
Right now, the PropertyItem has a Dependency Property "IsExpandable" (from PropertyItemBase). When initializing the PropertyItem, the Dependency property is bound to propertyItem.DescriptorDefinition.IsExpandable property.
If "PropertyItemBase.IsExpandable" is set to "True" by default and the binding is canceled, all the properties in the PropertyGrid will be expandables. The binding is currently set in the private method ObjectContainerHelperBase.InitializePropertyItem().
Another option could be top keep the binding, but to make sure the binded Dependency Property is always True. This is done in the internal method "DescriptorPropertyDefinitionBase.UpdateIsExpandable()". This method does 2 checks :
a) Is there an Expandable attribute
b) Is there a value
Unfortunately, these modifications need to be done in internal or private methods. Please create an issue if these options are not solutions for you.
Thanks.
Right now, the PropertyItem has a Dependency Property "IsExpandable" (from PropertyItemBase). When initializing the PropertyItem, the Dependency property is bound to propertyItem.DescriptorDefinition.IsExpandable property.
If "PropertyItemBase.IsExpandable" is set to "True" by default and the binding is canceled, all the properties in the PropertyGrid will be expandables. The binding is currently set in the private method ObjectContainerHelperBase.InitializePropertyItem().
Another option could be top keep the binding, but to make sure the binded Dependency Property is always True. This is done in the internal method "DescriptorPropertyDefinitionBase.UpdateIsExpandable()". This method does 2 checks :
a) Is there an Expandable attribute
b) Is there a value
Unfortunately, these modifications need to be done in internal or private methods. Please create an issue if these options are not solutions for you.
Thanks.