krutofire.blogg.se

Windows jump list tasks
Windows jump list tasks











You can provide an icon image URI for a jump list task by specifying JumpListItem.Logo. Anyway, I recommend that you code defensively and make sure you call SaveAsync from within a try-catch block and consider what the right action is in case of failure. More specifically, I got exceptions with HRESULT 0x80070497 which is Windows error ERROR_UNABLE_TO_REMOVE_REPLACED “Unable to remove the file to be replaced”. I mention this because I found it failed more often than I expected, but this could just be due to interference from antivirus on my machine or something. This might sound obvious, but since this involves writing to disk the method may fail for a number of reasons. You use JumpList.SaveAsync() to persist any configuration changes you’ve made. I encourage you to browse through the JumpList documentation and Microsoft’s sample on Github to familiarize yourself with the API if you haven’t already. The Windows.UI.StartScreen.JumpList class is where it all happens, and while it has the same class name as the WPF version the usage is different.

windows jump list tasks

no phone, HoloLens or Xbox) and the jump list shows up both on the taskbar and the app’s start menu tile. The API is really only implemented on desktop and tablet devices (i.e. UWP developers gained similar capabilities in Windows 10 version 1511 (build 10586), which means it’s available on almost every Windows 10 machine by now. Example of jump listĬOM developers could customize the jump list with APIs such as ICustomDestinationList and WPF developers may be familiar with the class. The context menu may give you quick access to recently or frequently used items and/or shortcuts to actions within the application.

windows jump list tasks

You’ve seen them when you right-click a program’s icon in the taskbar. Jump lists aren’t new, they have been around since at least Windows 7. I’ve spent some time the JumpList API for UWP apps recently and there were a couple of things that caught me by surprise that I wanted to share with you, so you don’t have to repeat the mistakes I did.













Windows jump list tasks