Browse Source

PropertyGrid: fixed issue with ExpandableProperty past 1 level

import/raw
brianlagunas_cp 15 years ago
parent
commit
da297e88e2
  1. 2
      Main/Source/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs

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

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

Loading…
Cancel
Save