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
1170
Visual layers of a Cell?
posted

I'm working with a grid that changes the background of certain cells to various colors depending on the state of that cell's object. The problem is that despite my efforts, when a cell is selected there is a blue tint applied to the background, obscuring the color. I've tried to set BackgroundSelected to Transparent for both the DataRecordCellArea and the CellValuePresenterStyle, but neither of these changes remove the tint. Are there any other settings, maybe a higher level setting of the XamDataGrid object, that are layered on top of both CellValuePresenter and DataRecordCellArea settings?

If I have to choose I wouldn't mind having no default selected/hover styling of the grid, though ideally it would still apply to cells with different styles.

 

 

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello John,

     

    Thank you for your post. I have been looking into your requirement and I suggest you add the following Style in your XamDataGrid’s Resources:

    <Style TargetType="{x:Type igDP:DataRecordCellArea}">
        <Setter Property="BackgroundHover" Value="Transparent"/>
        <Setter Property="BackgroundActive" Value="Transparent"/>
        <Setter Property="BorderActiveBrush" Value="Transparent"/>
        <Setter Property="BorderHoverBrush" Value="Transparent"/>
        <Setter Property="BorderSelectedBrush" Value="Transparent"/>
        <Setter Property="BackgroundSelected" Value="Transparent"/>
    </Style>
    

     

    Please let me now if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

Children