Property Item Value - Font color

Grids for WPF Forum

Posted 15 years ago by Maulik Goradiya
Version: 4.5.0487
Avatar
Hi,

How can I change Font color and/or background color of Value column when user try to modify it's value?

Currently I am only able to work with "ModifiedPropertyDisplayMode" in XAML file which have BoldValue and ItalicValue options.

Comments (1)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Maulik,

I'm not sure what you mean by "try to modify it's value". The ModifiedPropertyDisplayMode will show values that differ from their default value in bold. If this is what you are referring to, then you would need to use a custom property editor.

Basically, your DataTemplate would include a DataTrigger that would change the Foreground property of the controls (in the DataTemplate) when the IsModified property is True. The IsModified property can be obtained using the RelativeSource parameter of the Binding statement, where AncestorType = typeof(IPropertyDataAccessor).


Actipro Software Support

The latest build of this product (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.