public void MouseLeaveRow(DataGridRow row) { //Only reset the row bg and border if not selected. //Don't need to worry about cell priority again. if (!row.IsSelected) { row.ClearValue(DataGridRow.BackgroundProperty); row.ClearValue(DataGridRow.BorderBrushProperty); } }
public void RowUnselected(DataGridRow row) { //Clear border, and cell if the user clicked away while mouse wasn't over. row.ClearValue(DataGridRow.BackgroundProperty); row.ClearValue(DataGridRow.BorderBrushProperty); }