c# - WPF JumpList 在 Windows 10 中不起作用

标签 c# wpf windows-10 jump-list

我正在尝试在 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 10 Build 1511 (10586)。

JumpLists 会像魅力一样工作。

关于c# - WPF JumpList 在 Windows 10 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31737943/

相关文章:

java - Java 中的 C# InvalidEnumArgumentException

c# - 找不到与 asp.net 网站项目中命名的 Controller 匹配的类型

c# - 如何指定 EF 代码优先方法创建数据库的自定义文件夹路径?

HierarchicalDataTemplate 中的 WPF 绑定(bind)父属性

java - 多次运行后处理时间变得更慢

visual-studio - 使用 Visual Studio 2015 设置 Qt5

c# - 使用 Directory.GetFiles 时出现 UnauthorizedAccessException

c# - 为什么 textedit 验证处理程序被调用两次?

c# - 需要帮助理解 MVVM 教程、RelayCommand 和 lambda 的使用

java - 我无法在 Windows 10 计算机中安装 Java