Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
710
Background of GroupByRecordPresenter
posted

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

Parents
No Data
Reply
  • 14517
    Verified Answer
    Offline posted

    Hello Summet,

    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

Children