我相信您正在寻找的是Windows®API代码包,您需要为您的应用程序创建一个跳转列表.
您在跳转列表中看到的内容完全取决于程序.跳转列表不仅仅显示快捷方式
到文件.有时,它们还可以快速访问命令,例如撰写新电子邮件或播放音乐.
例:
using Microsoft.WindowsAPICodePack.Taskbar;
using Microsoft.WindowsAPICodePack.Shell;
JumpList list = JumpList.CreateJumpList();
JumpListCustomCategory category = new JumpListCustomCategory("Links");
category.AddJumpListItems(new JumpListLink("http://www.microsoft.com", "Microsoft"));
list.AddCustomCategories(category);
list.Refresh();
Run Code Online (Sandbox Code Playgroud)
注意:以上示例未经测试,但它应该正常工作.
我不知道如何使它成为与活动实例交互的命令,例如iTunes任务.我怀疑他们会进行进程间通信以触发这些操作.
HTH,