Gets or sets a value that indicates how the progress indicator is displayed in the taskbar button.
Assembly: PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: Not mapped to an xmlns.
You can communicate the progress of long-running tasks by displaying a progress indicator in a Windows 7 taskbar button. The color of the indicator is determined by the property, which contains one of the TaskbarItemProgressState enumeration values. When the is Normal, the indicator is green. When Paused, the indicator is yellow. When Error, the indicator is red. For these states, the ProgressValue property determines how much of the taskbar button is filled by the progress indicator. ProgressValue is ignored for other values of . Indeterminate shows a pulsing green indicator across the entire taskbar button. No indicator is shown for None.
The following illustration shows the taskbar progress indicator in the Normal state.
The following example shows how to set the property in code. The state is set in the handler of a BackgroundWorker.RunWorkerCompleted event to indicate whether the background task was stopped by the user, ended with an error, or completed normally. This example is part of a larger example provided for the TaskbarItemInfo class.