Hi guys, I would like to disable the hover over style on the xamdatagrid. I have searched the forums and the common solution seems to be to set the BackgroundHover to Transparent on the DataRecordCellArea. I guess this does work but when you have colored text on the grid when hovering over, the text changes color to black and if you have a black background set on the grid the text is unreadable.
Any ideas for my solution?
Thanks
Why not just do this:
<Style TargetType="{x:Type DataPresenter:DataRecordCellArea}"> <Setter Property="BackgroundHover" Value="Transparent"/> <Setter Property="BorderHoverBrush" Value="Transparent"/> </Style>
Hello Andy,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Actually you can close this post I managed to get it working by templating the cell to a textblock and setting the BackgroundHover to Transparent on the DataRecordCellArea....... Thank you.
Hi thanks for your reply I am using version : 11.1.20111.2053
Could you please tell me which version do you use, because I use version 12.1 and I am not able to reproduce your behavior with the sample I sent you. I also tested the sample with versions 11.1 and 11.2 and there the issue still doesn’t occur.
Looking forward for your reply.