【发布时间】:2014-04-08 03:30:26
【问题描述】:
在我的点击事件中,我想在一定时间内显示一个不确定的进度条,然后恢复应用程序。我遇到的问题是我无法显示进度条。有人可以帮忙吗?
private void RunTestButton_Click(object sender, RoutedEventArgs e)
{
if (testRunning == false)
{
testRunning = true;
//Set progress bar visibility
PerformanceProgressbar.Visibility = Visibility.Visible;
PerformanceProgressbar.IsIndeterminate = true;
//Tell the app to pause for 5 seconds so the user sees the progress bar
//Set progress bar visibility
PerformanceProgressbar.IsIndeterminate = false;
PerformanceProgressbar.Visibility = Visibility.Collapsed;
testRunning = false;
}
}
【问题讨论】:
标签: c# windows-phone-8 progress-bar