Hello,
I have on xamDatagrid, I need that the style of the first field be the same as the field header.
Like this : http://gyazo.com/223e881a8f159f4147ffc666d2a67dc6
All reds cells need to have the same style, I just change the color of the text.
In my application, style is more complicated, so a BaseOn or a target modification is great for my case.
Regards
Hi teamtim,
The field header and cells underneath it are two different controls so a based on style isn't really going to work. The field header is a LabelPresenter and the cells underneath it are CellValuePresenters. For simple styling such as changing the foreground color this will not require that much code but if your styling needs to be more complicated you may need to start retemplating these two controls to make them look the same. I updated your sample to change the foreground color.
For more complicated styling, I recommend taking a look at the default styles for the LabelPresenter and CellValuePresenter. You can find these in the Infragistics installation directory: C:\Program Files (x86)\Infragistics\2015.1\WPF\DefaultStyles\DataPresenter. The CellValuePresenter and LabelPresenter styles are typically located in the files ending in "Express".