Hi,
I am able to set background and foreground colors for headers in xamGrid by using HeaderStyle property. However I see that upper left corner of the grid still has an original style (see picture). Is it possible to change it too ? Another question - how to restyle headers for 2nd hierarchy level ?
Thanks,
Ed
is this solution still working with the current Infragistics version? I got access to igDP and can style almost everything with it, just the header background like explained above doesn't work or I can't find an appropriate style for it. And the provided solution doesn't work since I don't have access to igPrim and when I import it like "xmlns:igPrim="http://schemas.infragistics.com/xaml/primitives" it doesn't work either.
Best regards
Tobias
Hello Ed,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Stefan,
Thank you very much, everything works fine.
Thank you for your post. I have been looking into it and I can suggest you the following Styles for HeaderCellControl and ExpansionIndicatorHeaderCellControl in order to achieve the result you want:
<Style TargetType="{x:Type igPrim:ExpansionIndicatorHeaderCellControl}"> <Setter Property="Background" Value="YellowGreen"/> </Style> <Style TargetType="{x:Type igPrim:HeaderCellControl}"> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self},Path=Cell.Row.Level}" Value="1"> <Setter Property="Background" Value="PeachPuff"/> </DataTrigger> </Style.Triggers> <Setter Property="Background" Value="YellowGreen"/> </Style>
Basically I used DataTrigger to apply different Background to the first and second ColumnLayout. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.