Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you show progress when IsIndeterminate="True" in a WPF progress bar?

This has to be the simplest question of all, but I cannot seem to figure it out. I have the progress bar in place. How do I make it show progress? How do I start the thing?

<ProgressBar x:Name="ProgressUpload" Margin="5" IsIndeterminate="True" ></ProgressBar>
like image 422
user38349 Avatar asked May 16 '10 18:05

user38349


2 Answers

A possible workaround of the problem is to simply show or hide the ProgressBar control:

progressBar.Visibility = Visibility.Visible;

progressBar.Visibility = Visibility.Collapsed;
like image 122
Stefan Avatar answered Nov 13 '22 23:11

Stefan


If you set IsIndeterminate to True, the progress has the meaning that something is in progress but you cannot determine the exact duration. So, I can only tell you to set it to false and to use the progress bar in its "standard" behavior.

like image 26
Maurizio Reginelli Avatar answered Nov 13 '22 23:11

Maurizio Reginelli