从自定义类别 - 跳转列表中删除项目

时间:2011-12-28 08:40:51

标签: windows-7 jump-list taskbar windows-api-code-pack

如何在Jumplist中动态删除自定义类别中的项目(不删除跳转列表本身)。

以下是我创建jumplist和customcategory的方法:

// 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代码包似乎提供了向项目添加项目的机制。如何从自定义类别中删除项目?

0 个答案:

没有答案