Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: [PropretyGrid] Pretend everything is ExpandableObject?

$
0
0
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.

Viewing all articles
Browse latest Browse all 2157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>