On my click event I want to show an indeterminate progressbar for a certain amount of time, and then resume the application. The problem I am having is that I cannot get the progressbar to show. Could someone help with this?
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;
}
}