dotnet / dotnet/winforms

Support Progress on Task Bar Entries

Open
#3,851 22 comments 10 reactions 1 assignee Claimed by @lonitra View on GitHub
api-suggestion tenet-compatibility-OS tenet-modernization
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

I'm currently migrating some of the stuff that was handled by the WindowsAPICodePack to use WinForms APIs (like the new [TaskDialog](https://github.com/dotnet/winforms/issues/146) and the new [FolderBrowserDialog](https://github.com/dotnet/winforms/issues/1)). As described in #181, individual issues should be opened for feature requests.

The WindowsAPICodePack had this API to set the progress of the window in the task bar:
```csharp
TaskbarManager.Instance.SetProgressValue(value, maximum, windowHandle)
```
It also supported different states like `Indeterminate`:
```csharp
TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.Indeterminate)
// Defined as:
public enum TaskbarProgressBarState
{
NoProgress = 0,
Indeterminate = 1,
Normal = 2,
Error = 4,
Paused = 8,
}
```

The result looks like in [this](https://www.codeproject.com/Articles/37451/Display-Progress-and-Overlay-Icons-for-Multiple-Vi) article:
![Screenshot from Code project](https://www.codeproject.com/KB/vista/W7ProgressAndOverlay/TaskBarWithPorgressAndOverlays.jpg)

**Will this feature affect UI controls?** Yes
- Will VS Designer need to support the feature?
- No
- What impact will it have on accessibility?
- I guess none, because the feature is already in use in windows itself and some applications
- Will this feature need to be localized or be localizable?
- No

Keywords:
- WindowsAPICodePack
- Task Bar Progress

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.