Make sure that the IsEnabled
and IsIndeterminate
properties of the progress bar are true.
Also u can take help from
题
Im using the Microsoft.Bcl.Async
NuGet package. working on VS 2012 Pro.
The progress bar is not displayed even after making NewProgressBar
Visible.
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);
}
解决方案
Make sure that the IsEnabled
and IsIndeterminate
properties of the progress bar are true.
Also u can take help from