Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A ProgressBar indicates the progress of an operation. The ProgressBar control consists of a window that is filled with the system highlight color as an operation progresses.
The following illustration shows a typical ProgressBar.
Styles and templates
This topic describes the styles and templates for the ProgressBar control. You can modify the default ControlTemplate to give the control a unique appearance. For more information, see What are styles and templates? and How to create a template for a control.
Content property
This control does not define a content property.
Parts
The following table lists the named parts for the ProgressBar control.
| Part | Type | Description |
|---|---|---|
| PART_GlowRect | FrameworkElement | The glow element used for indeterminate progress animation. |
| PART_Indicator | FrameworkElement | The indicator that shows the current progress value. |
| PART_Track | FrameworkElement | The track that represents the full range of the progress bar. |
Visual states
The following table lists the visual states for the ProgressBar control.
| VisualState Name | VisualStateGroup Name | Description |
|---|---|---|
| Determinate | CommonStates | The control shows determinate progress with a specific value. |
| Indeterminate | CommonStates | The control shows indeterminate progress with animated indicator. |
| InvalidFocused | ValidationStates | The control has a validation error and has keyboard focus. |
| InvalidUnfocused | ValidationStates | The control has a validation error but does not have keyboard focus. |
| Valid | ValidationStates | The control is valid and has no validation errors. |
See also
.NET Desktop feedback