This project has moved and is read-only. For the latest updates, please go here.


PropertyGrid ReadOnlyAttribute & Foreground


from this discussion

How I can mark readonly property in PropertyGrid by gray color (as PropertyGrid in VS)?
Closed Nov 11, 2014 at 8:07 PM by BoucherS
Fixed in v2.2.


BoucherS wrote Nov 14, 2013 at 3:31 PM


This bug will be fixed in v2.2.

When a property is made ReadOnly, a PropertyGridEditorTextBlock will be used. Since textBlocks can never be edited, the PropertyGridEditorTextBlock will always have its foreground Gray.

In addition, when the propertyGrid.IsEnabled property is false, all the property names and their editors will be grayed out.

wrote Jun 4, 2014 at 4:38 PM

wrote Nov 11, 2014 at 8:07 PM