私はこのコードを持っています:
void wait(int ms)
{
System.Threading.Thread.Sleep(ms);
}
private void button1_Click(object sender, RoutedEventArgs e)
{
info.Text = "step 1";
wait(1000);
info.Text = "step 2";
wait(1000);
info.Text = "step 3";
wait(1000);
info.Text = "step 4";
wait(1000);
}
そして問題は、voidbutton1_Click全体が終了した後にtextbox.textが更新されることです。オンエアでは更新されません:(
お願い、どうやって?