jaredthirsk has uploaded a patch.
Description:
Allow the user to determine their own logic for determining whether a PropertyGrid property should be expandable.
e.g.
private static bool IsExpandablePredicate(object item)
{
PropertyDescriptor property = item as PropertyDescriptor;
var tca = property.PropertyType.GetCustomAttribute<TypeConverterAttribute>();
if (tca != null)
{
return tca.ConverterTypeName == typeof(ExpandableObjectConverter).AssemblyQualifiedName;
}
return false;
}
void InitCode()
{
Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid.IsExpandablePredicate = IsExpandablePredicate;
}