Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF: Progress bar with indeterminent duration?

In WinForms you could set a progress bar to loop endlessly to indicate that you don't know how long it will take. How would I do that in WPF?

like image 763
Jonathan Allen Avatar asked Nov 21 '09 01:11

Jonathan Allen


2 Answers

<ProgressBar IsIndeterminate="True" />
like image 92
Travis Avatar answered Sep 19 '22 22:09

Travis


I personally like the approach Visual Studio 2010 takes. They use an animation of a small, looping series of dots (with varying intensity). They just animate the dots circling in the center of the window in question.

In WPF, this is trivial - just animate a rotation of a small drawing of a circle of dots with the opacity set correctly up front.

I find it very intuitive, small, and unintrusive.

like image 1
Reed Copsey Avatar answered Sep 21 '22 22:09

Reed Copsey