【发布时间】:2015-07-31 04:10:19
【问题描述】:
我正在尝试使用 Windows 10 中的 JumpTask 从任务栏运行自定义命令,但它不会启动链接的应用程序。但是,它正确显示了 JumpTask 链接及其图标。这是在 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);
【问题讨论】:
-
我可以确认同样的问题 - 在 Windows 8.1 上运行的类似代码不再在 Windows 10 上运行。
-
嗨科林,你有机会解决这个问题吗?
-
它似乎不仅仅是 WPF 应用程序 - Skype 跳转列表不再有效。我通过将跳转列表启动程序设置为notepad.exe进行了测试,但它仍然不起作用,所以跳转列表似乎不再执行了。
-
另一方面,在我的 Visual Studio 中,最近的项目仍然存在。
-
我的 Skype 工作正常。但是我的跳转列表,具有相同的问题代码,还没有工作。有人解决了吗?
标签: c# wpf windows-10 jump-list