How can I use the UWP JumpList API to customize the jump list for a taskbar icon created using the SecondaryTile API?
var jumpList = await Windows.UI.StartScreen.JumpList.LoadCurrentAsync();
jumpList.Items.Clear();
jumpList.Items.Add(JumpListItem.CreateWithArguments("", "Foo"));
await jumpList.SaveAsync();
I have found that it's possible to get the HWND for a secondary tile using:
var window = // Reference to the app's main window.
var secondaryTile = new SecondaryTile(...);
var hwnd = WindowNative.GetWindowHandle(window);
InitializeWithWindow.Initialize(secondaryTile, hwnd);
However, I also don't see a way to set the jump list from the HWND.
Currently, there is no way to add jumplist to SecondaryTile. We can refer to win11's built-in application Microsoft Store, there is also no jumplist in its SecondaryTile.