
It is possible to hide Misc category by mean of filter:
<grids:PropertyGrid.DataFilter>
<grids:PropertyModelStringFilter x:Name="stringFilter" Source="Category" Operation="NotEquals" Value="Misc" />
</grids:PropertyGrid.DataFilter>
but when using CategoryEditors like in your Sample app:
SampleBrowser\ProductSamples\GridsSamples\QuickStart\PropertyGridCategoryEditors
and adding in the class AppearanceViewModel a new property:
public string Another { get; set; }
so now the filter is not working, even nothing (no categories) is displayed.
I also tried with a filter predicate:
private bool CustomFilterPredicate(object model)
{
var propertyModel = model as IPropertyModel;
return (propertyModel != null) && (propertyModel.Category != propGrid.MiscCategoryName);
}
but it did not help. How can I hide the Misc (or another) category?