I have GridView
with multiple numbers and I have a click event on items from this GridView
.
I would like the items that have already been clicked to change the background and text colors, to show the user that they have already been clicked.
If possible disable for future clicks.
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));
}
}