gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 15:36:28 31 4
gpt4 key购买 nike

我正在尝试在 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/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com