I have a Silverlight DataGrid and I can’t figure out how to style it. When the user hovers over a row, the background color that is applied to the row (by default) does not fit well with the rest of the UI. I want to change this background color on hover. How do I do it?
Share
You need to assign a
DataGridRowStyle toDataGrid.RowStylethat changes the animation for the VisualState for MouseOver. The Default styles for DataGrid can be found here.In the style for DataGridRow you want to change this:
That Rectangle is opaque but is made visible on mouse over. Changing the fill will change the background color on mouse over.