Browse Source

PropertyGrid: fixed issue wtih ExpandableObject not expanding when private setter is present.

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

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

@ -333,13 +333,10 @@ namespace Microsoft.Windows.Controls.PropertyGrid
Instance = instance;
BindingPath = bindingPath;
if (!IsReadOnly)
var attribute = PropertyGridUtilities.GetAttribute<ExpandableObjectAttribute>(PropertyDescriptor);
if (attribute != null && PropertyDescriptor.GetValue(Instance) != null)
{
var attribute = PropertyGridUtilities.GetAttribute<ExpandableObjectAttribute>(PropertyDescriptor);
if (attribute != null && PropertyDescriptor.GetValue(Instance) != null)
{
HasChildProperties = true;
}
HasChildProperties = true;
}
CommandBindings.Add(new CommandBinding(PropertyItemCommands.ResetValue, ExecuteResetValueCommand, CanExecuteResetValueCommand));

Loading…
Cancel
Save