4

Closed

PropertyGrid ReadOnlyAttribute & Foreground

description

from this discussion
-=-=-=-=-=-=-=-=-=-

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

comments

BoucherS wrote Nov 14, 2013 at 3:31 PM

Hi,

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.