我有这个代码:
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);
}
问题是 textbox.text 在整个 void button1_Click 完成后更新。它没有在 AIR 上更新 :(
请问,怎么做?