It seems that it is not supported for desktop bridge apps.
Exception on pinning App to taskbar
Heiko
1,291
Reputation points
Hi,
when I try to pin my app to the taskbar, I get an exception "Interface not registered" and error 0x80040155 when calling RequestPinCurrentAppAsync()
.
It is a WPF app that has been converted to a bridge app.
What is the cause of the problem?
private async void buttonPinToTaskbar_Click(object sender, RoutedEventArgs e)
{
TaskbarManager taskbar = TaskbarManager.GetDefault();
if (!await taskbar.IsCurrentAppPinnedAsync())
await taskbar.RequestPinCurrentAppAsync();
}