Browse Source

PropertyGrid: fixed issue where an ExpandableObject would only show properties of a base class or interface.

pull/1645/head
brianlagunas_cp 14 years ago
parent
commit
ad8ed27f51
  1. 5
      ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs

5
ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs

@ -385,12 +385,15 @@ namespace Microsoft.Windows.Controls.PropertyGrid
private void GetChildProperties()
{
PropertyDescriptorCollection descriptors = PropertyDescriptor.GetChildProperties();
if (Value == null)
return;
var propertyItems = new List<PropertyItem>();
try
{
PropertyDescriptorCollection descriptors = PropertyGridUtilities.GetPropertyDescriptors(Value);
foreach (PropertyDescriptor descriptor in descriptors)
{
if (descriptor.IsBrowsable)

Loading…
Cancel
Save