This help article will show you how to modify the foreground color of the GridViewRow element when you select or hover it.

Every row shows a set of GridViewCells. In order to change the foreground of all the GridViewCells when their parent row is hovered or selected you should predefine the template of the GridViewRow and access the part DataCellsPresenter element. This element is an ItemsControl used to display the cells contained in a row.

You then need to add an additional animation to the default hover and/or selection states of a row and manipulate the Foreground property of PART_DataCellsPresenter.

Example 1 demonstrates how to edit the Selected visual state in order to change the foreground of the row when it is selected.