Is it possible to change the background color when hovering on a cell? We're using the office 2013 theme and would like to eliminate the gradient.
Hello,
In order to change the background hover color of the CellValuePresenter (visual representation of the Cell) when using the XamDataGrid with Office2013 theme, you can create a style for the CellValuePresenter and set the BackgroundHover property. Setting the BasedOn property to Office2013.CellValuePresenter will be necessary as well in order to keep the default styling.
XAML:
<igDP:XamDataGrid.Resources> <Style TargetType="igDP:CellValuePresenter" BasedOn="{x:Static igThemes:DataPresenterOffice2013.CellValuePresenter}"> <Setter Property="BackgroundHover" Value="LightGreen" /> </Style></igDP:XamDataGrid.Resources>
If you have any questions, please let me know.
Okay thanks for the reply. I will not be able to test this for a week or so, because I am about to go on vacation. I'll respond when I get back & am able to get it implemented.