From the course: Windows Presentation Foundation 5: Interaction and Controls

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

The ProgressBar

The ProgressBar

From the course: Windows Presentation Foundation 5: Interaction and Controls

Start my 1-month free trial

The ProgressBar

- [Instructor] Another range control that is useful for displaying progress is the ProgressBar. I've got two of them on this page, one at top in the blue section and one in the coral colored section. The ProgressBar gives a visual indication on where you are in a long running process. I'll click this Download Files button and we'll see what happens in this ProgressBar. I can tell I've started the progress. I'm currently 50% done. Now I know I'm getting close to the end. For some tasks, expressing the progress as a percentage is not possible or you simply don't know how long it will take. For those situations, turn on IsIndeterminate. I'll do that clicking on this check box. The ProgressBar shows an animation to let the user know that something is happening yet indicating that their running time cannot be determined. Over in Visual Studio, I will look at the ProgressBar page. To turn on the IsIndeterminate is just a Boolean property. I have this check box here. In the code behind when…

Contents