Skip to content
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

COMException on pin app to taskbar #1028

Closed
Marv51 opened this issue Oct 23, 2021 · 2 comments
Closed

COMException on pin app to taskbar #1028

Marv51 opened this issue Oct 23, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@Marv51
Copy link

Marv51 commented Oct 23, 2021

Describe the bug
I'm trying to offer a button in my app to pin the app to the taskbar. The UWP Api for this is TaskbarManager.RequestPinCurrentAppAsync. This worked in UWP but in WinUI 3 with CsWinRT and .net 5. This fails with a System.Runtime.InteropServices.COMException, with message "Interface not registered (0x80040155)".

To Reproduce

bool isPinned = await TaskbarManager.GetDefault().RequestPinCurrentAppAsync();

Expected behavior
Should work as in UWP, it should show a user confirmation dialog and pin the app to the taskbar on confirmation. If this fails it should return false.

Version Info
Windows App SDK 0.8.5

@Marv51 Marv51 added the bug Something isn't working label Oct 23, 2021
@Marv51 Marv51 changed the title Pin app to taskbar COMException on pin app to taskbar Oct 23, 2021
@jlaanstra
Copy link
Collaborator

This is called out as not supported in WIndowsAppSDK 1.0: https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/migrate-to-windows-app-sdk/what-is-supported

@angelazhangmsft
Copy link
Contributor

@Marv51 this is currently not on the roadmap for Windows App SDK, but this issue/feature proposal has been opened so feel free to leave feedback: microsoft/WindowsAppSDK#1648

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants