We have decided to move to the new property grid. I am a few days into the port and have many things working. The new architecture is much simpler. I have one question, and one issue.
Question: Why is SortOrder readonly in PropertyDescriptorPropertyModel and CollectionPropertyDescriptorPropertyModel, yet read/write in CategoryModel? It makes me think I am missing something about its intented use.
Issue: I am trying to attach visibility control to categories, such that if I dynamically hide all of a categories' children the category itself hides as well. It is all working as expected, except I can't figure out how to add a setter to the existing category style:
<grids:PropertyGridItemStyleSelector.CategoryStyle >
<Style TargetType="grids:PropertyGridItem" >
<Setter Property="Visibility" Value="{Binding IsVisible, Converter={x:Static local:VisibilityConverterCollapsed.Instance}}" />
</Style>
</grids:PropertyGridItemStyleSelector.CategoryStyle>
I want to base it on the existing style, but can't find it. I also tried adding the setter in code by creating a new style based on DefaultCategoryItemContainerStyle and setting the new style back, but that throws an exception.
Thanks,
D'Arcy