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

Patch Uploaded: #15915

$
0
0

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;
}


Viewing all articles
Browse latest Browse all 4964

Trending Articles



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