This is UWP C# application. I want to display the i variable.
private void btn2_Click(object sender, RoutedEventArgs e)
{
for(int i = 0; i<=10000000; i++)
{
textBlock2.Text = i.ToString();
}
}
But after I clicked the button, the text only change one time after the loop is finished.
How can see changing text in every loop?