diff --git a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs index 1d814a2c..216188c0 100644 --- a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyItem.cs +++ b/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(PropertyDescriptor); + if (attribute != null && PropertyDescriptor.GetValue(Instance) != null) { - var attribute = PropertyGridUtilities.GetAttribute(PropertyDescriptor); - if (attribute != null && PropertyDescriptor.GetValue(Instance) != null) - { - HasChildProperties = true; - } + HasChildProperties = true; } CommandBindings.Add(new CommandBinding(PropertyItemCommands.ResetValue, ExecuteResetValueCommand, CanExecuteResetValueCommand));