Change background and font color of GridView (Windows 10 App)

0

I have a GridView with several numbers and I have a click event on the items in this GridView. I would like the items that were already clicked to change the colors of the background and the text, to indicate to the user that they have already clicked on them.

The event is this:

private void dataGridNumbers_Tapped(object sender, TappedRoutedEventArgs e)
{
    string selectedNumber = dataGridNumbers.SelectedItem.ToString();

    if (selectedNumber == resposta)
    {
        txtBoxInfo.Text = "Congratulations! You Find the Ramdon Number!";
    }
    if (selectedNumber != resposta)
    {
        numbersCloser(Int32.Parse(selectedNumber));
    }
}
    
asked by Tiago David Furtado 29.06.2017 в 21:43
source

1 answer

0

You can create a property to the elements of the list, EnlaceVisitado and change to true when you decide and with a Converter, modify its color.

    
answered by 29.06.2017 в 21:58