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).
EDIT: Sorry for double-posting!!
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).
EDIT: Sorry for double-posting!!