how to change text (foreground) color at runtime.
Please assist.
foreground (text in the cells) color of entire Datagrid at runtime
Put this style in the data grid's Resources, or anywhere else's Resources above it:
<Style TargetType="{x:Type igDP:CellValuePresenter}"> <Setter Property="Foreground" Value="Green" /></Style>
I am using the datagrid in a WPF user control.The module using this custom control will set the foreground of the custom control and and that time i want to set the foreground of entire datagrid.I will like to use something in the Load event of custom control: grdStaff.Foreground = this.Foreground ;
Can you please tell me, how to change the foreground color for a specific row in xamdatagrid using code? I dont want it in xaml