Dear All
I am trying to style the XamDataGrid header cells so that I can give them a light blue background and a white border. I would like to do this in XAML. Can you tell me which part of the visual tree of the grid to target? I am using Vista and can't get Snoop to work, as suggested in the Infragistics documentation.
Regards
Chris
Thanks for your help Wendy
We've been re-templating WPF controls recently and have come to the conclusion that we'll have to do the same with the XamDataGrid.
It looks like you should be able to change the backcolor if you make the targettype of the style LabelPresenter instead of HeaderLabelArea.
I found the easiest way to style the labels was to copy the LabelPresenter style from DataPresenterGeneric_Express into a resource file in my project and customize it.
Just to add a bit of detail to this:
We are defining a style in the resources of the WPF Grid containing the XamDataGrid as follows:
<Style x:Key="Epro36HeaderFont" TargetType="{x:Type igDP:HeaderLabelArea}">
<Setter Property="FontWeight" Value="Bold"/>
</Style>
and would like to add to that <Setter Property="Background" Value="DDEBF8"/>
to get a light blue background on the header cells. The problem is that if we do this and then set the HeaderLabelAreaStyle hook in the FieldLayoutSettings for the XamDataGrid to point at this style, the Bold setting takes effect but the background one doesn't.
So our problem is that the obvious way of doing this is not working.
All help gratefully received.