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
435
Changing Selection Color
posted

I am using the Xaml data grid with the Office2k7Blue theme, but I find the selected item color really hard to see.

How do I override the background color for the selected items?

I thought it would be somewhere in FieldLayoutSettings but I can't seem to find it.

Thanks,

Robson

Parents
No Data
Reply
  • 435
    Verified Answer
    posted

    Nevermind, I figured it out

     

    <igDP:XamDataGrid

    x:Name="ResultSetDataGrid"

    IsGroupByAreaExpanded="True"

    Theme="Office2k7Blue"

    >

    <
    igDP:XamDataGrid.Resources>

    <Style TargetType="{x:Type igDP:DataRecordCellArea}">

    <Setter Property="BackgroundHover">

    <Setter.Value>

    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">

    <GradientStop Color="#FF2225FF" Offset="0"/>

    <GradientStop Color="#FFB9D8FF" Offset="1"/>

    </LinearGradientBrush>

    </Setter.Value>

    </Setter>

    <Setter Property="BackgroundSelected">

    <Setter.Value>

    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">

    <GradientStop Color="#FF220000" Offset="0"/>

    <GradientStop Color="#FF0000FF" Offset="1"/>

    </LinearGradientBrush>

    </Setter.Value>

    </Setter>

    <Setter Property="BackgroundActive">

    <Setter.Value>

    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">

    <GradientStop Color="#FF002500" Offset="0"/>

    <GradientStop Color="#FFB90000" Offset="1"/>

    </LinearGradientBrush>

    </Setter.Value>

    </Setter>

    <Setter Property="BorderHoverBrush" Value="#FF000000"/>

    </Style>

    </igDP:XamDataGrid.Resources>

Children
No Data