C # Silverlight Datagrid - Zmiana koloru wiersza

Jak zmienić kolor wierszy datagrid silverlight ?!

Próbowałem tego, ale wydaje się, że nie działa tak, jak chcę ... Losowe wiersze są niepoprawnie pokolorowane:

 void dataGrid1_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            var c = e.Row.DataContext as Job;
            if (c != null && c.Status.Contains("complete"))
                e.Row.Background = new SolidColorBrush(Colors.Green);
            else
                e.Row.Background = new SolidColorBrush(Colors.Red);
        }

questionAnswers(5)

yourAnswerToTheQuestion