Hi,
I am trying to change the background of GroupByRecordPresenter by using the following code
But the only area that gets changed is where the icon for expander and collapsing is, The background of the text doesnt get changed
<Style TargetType="{x:Type igDP:GroupByRecordPresenter}"> <Setter Property="Foreground" Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type igDP:XamDataGrid}, ResourceId=LabelForeground}}"/> <Setter Property="Background" Value="Black"/>
----
-----
Thanks
Sumeet
Yes , Thanks a lot for your help
Hello Summet,
Were you able to resolve your issue?
Sincerely,ValerieDeveloper Support Engineer Infragisticswww.infragistics.com/support
The Data Grid’s ComponentResourceKey LabelHighlight defines the background color of the Content Section of the GroupByRecordPresenter. You can change this by redefining the Brush defined with this key. Since this color is also used for highlighting in other parts of the control, to change this only for the GroupByRecordPresenter, you could use a style similar to the following:
<Style TargetType="{x:Type igDP:GroupByRecordPresenter}">
<Style.Resources>
<SolidColorBrush x:Key="{ComponentResourceKey {x:Type igDP:XamDataGrid}, LabelHighlight}" Color="Lime"/>
</Style.Resources>
</Style>
Please let me know if you have any questions.
Sincerely,
Valerie
Developer Support Engineer
Infragistics
www.infragistics.com/support