propertygrid read-only name cell

Grids for WPF Forum

Posted 13 years ago by Mary Fontana - Rudolph Technologies
I have user request to change the forground color of read-only name cell.
The current color used is too light and hard to read.
The read-only value cell is also light but easier to read than read-only name cell.

I have read that it uses the themes:PropertyGridCommonDictionary.ForegroundDisabledBrushKey
which is set to SystemColors.GrayTextBrushKey.

I still dont understand how to override the default value.
and would appreciate an example of how to set the name-cell to use the normal forground color.

Thanks in advance.

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Mary,

You can redefine the brushes in your app resources or window resources using the specified key. During runtime, the PropertyGrid will use your brush, instead of the default brush. Something like:
<SolidColorBrush x:Key="{x:Static themes:PropertyGridCommonDictionary.ForegroundDisabledBrushKey}" Color="Red" />

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.