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
755
How can I disable the focus highlight effect in the grid?
posted

Hi,

There is a funny behaviour in the XamlDataGrid that is enabled by default.  

The row is highlighted when you pass over it with the mouse and fade out when you move away.  Its annoying.  How can I disable that feature.

 Thank you.

 

  • 755
    posted

    Never mind,

     I tried this and it apear to work

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

    <Setter Property="BackgroundHover">

    <Setter.Value>

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

    <GradientStop Color="White" Offset="0"/>

    <GradientStop Color="White" Offset="1"/>

    </LinearGradientBrush>

    </Setter.Value>

    </Setter>

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

    </Style>