Browse Source

PropertyGrid: fixed issue with ExpandableProperty past 1 level

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

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

@ -395,7 +395,7 @@ namespace Microsoft.Windows.Controls.PropertyGrid
private void ResolveExpandableObject()
{
var attribute = PropertyGridUtilities.GetAttribute<ExpandableObjectAttribute>(PropertyDescriptor);
if (attribute != null && PropertyDescriptor.GetValue(Instance) != null)
if (attribute != null)
{
HasChildProperties = true;
IsReadOnly = true;

Loading…
Cancel
Save