Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: PropertyGrid - manage/define subproperties of expanded property

$
0
0
Hi,

I am using the (glorious) PropertyGrid with AutoGenerateProperties set to false.
Each time I change the SelectedObject, I also change the PropertyDefinitions accordingly.

This works great so far, but today I started to use IsExpandable=true in one of my PropertyDefinitions.

The effect was that all subproperties of the expandable property are displayed if I expand it.

Question: can I also add PropertyDefinitions to the PropertyDefinitions collection that define or limit these subproperties? How can I prevent some of the subproperties to appear in the grid?

I tried to add definitions for these subproperties, but they are ignored (probably because the grid expects the PropertyDefinitions to apply to the main properties of the SelectedObject).

Viewing all articles
Browse latest Browse all 4964

Trending Articles



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