Reputation: 9900
I have an application written in .Net 4.0 with WPF. I'm trying to find out how I can add the feature 'Pin this program to the taskbar' that you so often see when you right click a Windows 7 Application icon.
I know that I need to use a jumplist (see: http://www.wpftutorial.net/Jumplists.html) but I haven't been able to find out how to create (or reference) this specific feature.
Upvotes: 3
Views: 1001
Reputation: 723598
That is provided by the system, so you don't need to do anything to add it to your application's Jump List. Even if you don't initialize a custom Jump List for your application, it should always be there in the default Jump List that the system uses.
Note that the system seems to be finicky with Jump Lists when running your application in debug mode sometimes (with vshost.exe). If you're not seeing a Jump List you can try restarting the debugger, the IDE or the system, or rebuild your application. However, this should not affect the release executable.
Upvotes: 2