如何从 Jumplist 中的自定义类别中动态删除项目(不删除 jumplist 本身)。
这是我创建跳转列表和自定义类别的方式:
// Creating jumplist
list = JumpList.CreateJumpListForIndividualWindow(TaskbarManager.Instance.ApplicationId, windowHandle);
// Creating custom category
userActionsCategory = new JumpListCustomCategory("MyOwnCategory");
// Adding items to custom category
JumpListLink jlapp = new JumpListLink(app_name_path, app_final_name);
jlapp.IconReference = new IconReference(app_name_icon_path, 0);
userActionsCategory.AddJumpListItems(jlapp);
// Adding category to Jumplist
list.AddCustomCategories(userActionsCategory);
现在,我希望从这个自定义类别中动态添加和删除项目。API 代码包似乎提供了一种只将项目添加到类别的机制。如何从自定义类别中删除项目?