Search code examples
c#wpfwindows-7jump-list

Possible to override "Pin" functionality of Windows 7 Jump List Item? Or multiple commands on a single line


I've started adding JumpLists to my programs and know how to "talk back" using a single instance of my program, but I was wondering if it is possible to override the Pin functionality or otherwise add two commands to a single line?

I want to have an "Open location" (main click) or "Remove location" option, and was hoping to be able to override the Pin icon to act as the "remove".

I know I could do it by making twice as many items and having half of them as "remove" and half as "open", but it would really clean up the UI / List if they could be on a single line.


Solution

  • I don't believe this is possible. Looking at both the managed and unmanaged API's it's pretty clear that a JumpList is a collection of JumpItem and a JumpItem (or really, a JumpTask or JumpPath) can only take a single path with additional arguments. To override the JumpItem click handler you'd need access to methods that are not exposed by Windows.