Windows Phone:未显示PerformanceProgressBar

时间:2013-11-20 06:11:11

标签: c# windows-phone-8 windows-phone-7.1

我正在使用Microsoft.Bcl.Async NuGet包。在VS 2012 Pro上工作。

即使在NewProgressBar可见之后,也不会显示进度条。

 private async void Button_Click(object sender, RoutedEventArgs e)
 {
      NewProgressBar.Visibility = Visibility.Visible;
      CloudResponse res = await WebService.Instance.MailMessage();
      NewProgressBar.Visibility = Visibility.Collapsed;

      if (res.success == 1)
           MessageBox.Show("Message sent succesfully");
      else if (!res.errorMessage.IsEmpty())
           MessageBox.Show(res.errorMessage);
 }

1 个答案:

答案 0 :(得分:1)