-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support TaskbarManager (pinning to taskbar) from desktop apps #1648
Comments
Scope
Microsoft currently does this via Microsoft Edge so it's only fair that other apps get the same capabilities. |
No apps shouldn't pin to the taskbar without any consent dialogs or prompts. Microsoft Edge should also use consent dialog. |
@JaiganeshKumaran I agree with you, but the Edge team isn't willing to make the change so that leaves one option. |
Hi @ghost1372, progress bars are a separate topic and not supported in this UWP TaskbarManager API we're discussing. This API only covers pinning to taskbar. However, progress bars are already supported by desktop apps: https://docs.microsoft.com/windows/win32/shell/taskbar-extensions#progress-bars |
Then send feedback to them. Because Edge is doing something bad doesn't mean other apps should do the same too. |
Recently, the official blog of Microsoft announced a new api for pinned application to the taskbar. Will this api be put into winrt or wasdk? When will the api be announced? |
Till this day, the documentation mentioned nowhere about this can only be used with UWP and cannot be used by a winui3 app, wasting everyone's time trying it then get the exception |
MS added some samples in the SDK : https://github.com/microsoft/windows-classic-samples/tree/main/Samples/TaskbarManager |
I tried just that. There are 2 things to confirm:
|
I wrote up how to generate your own tokens a few years ago (https://withinrafael.com/2021/01/04/generating-valid-tokens-to-access-limited-access-features-in-windows-10/). You're welcome to use my token generator at https://withinrafael.com/api/windows_laf_token while it is online. (Feature list is current as of Windows vNext 25997. No SLA.) |
Summary
TaskbarManager API is supported in UWP apps but not desktop apps (the API doesn't have a way to pass through your HWND so it's non-functional in desktop apps). The API is used to pin your primary tile to the taskbar, along with pinning secondary tiles to taskbar (the secondary tiles are a limited access feature that we typically instead recommend using Hosted Apps for, but the primary tile pinning is a slightly more popular API).
The text was updated successfully, but these errors were encountered: