grimcoder
grimcoder

Reputation: 97

WPF JumpList is not working in Windows 10

I am trying to run custom commands from TaskBar using JumpTask in Windows 10 but it does not start the linked application. However it correctly displays the JumpTask link and it's icons. Here is the code that works correctly in Win7/Win8.

JumpTask signOutTask = new JumpTask
{
    ApplicationPath = System.Reflection.Assembly.GetEntryAssembly().Location,
    Title = XXX.Properties.Resources.AccountContextMenu_SignOutText,
    Description = "Sign out of your account",
    CustomCategory = "Actions",
    Arguments = "/signout",
    IconResourcePath = System.Reflection.Assembly.GetEntryAssembly().Location,
    IconResourceIndex = 0
};

JumpList jumpList = new JumpList();
jumpList.JumpItems.Add(signOutTask);
jumpList.ShowFrequentCategory = false;
jumpList.ShowRecentCategory = false;

JumpList.SetJumpList(Application.Current, jumpList);

Upvotes: 3

Views: 1950

Answers (3)

Fran
Fran

Reputation: 121

You need to update to Windows 10 Build 1511 (10586).

JumpLists will Works like a charm.

Upvotes: 2

JKH
JKH

Reputation: 151

I ran into a similar problem trying to implement a JumpList under Win10. With my app, I could add JumpList tasks with no problem ... they just wouldn't do anything. The really odd thing is that the JumpList started to work after I had Pinned my app to the task bar. Repeated the experiment multiple times with the same result. App unpinned, JumpList didn't work ... App pinned, JumpList worked fine.

So, I tried the same experiment with FireFox and Excel. Both of these have no problem executing JumpList tasks ... Pinned or UnPinned.

Clearly we are missing something. Not sure what.

Upvotes: 1

Markus Korbel
Markus Korbel

Reputation: 11

I discovered that I could get mine to work again by modifying the Arguments property passed along to the application. I used the format @QUIT@, etc. to distinguish them from other parameters.

It seems like Win10 doesn't like the @ character, so I switched my parameters to |QUIT| and it works again.

You are using "/signout", so I tested /QUIT. That works on Win8.1 and Win10 for me.

I would still try removing special characters or using different ones and see if that makes a difference in your case.

Upvotes: 1

Related Questions