从自定义类别 - 跳转列表中删除项目
如何从跳转列表中的自定义类别动态删除项目(不删除跳转列表本身)。
以下是我创建跳转列表和自定义类别的方法:
// 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代码包似乎提供了一种仅将项目添加到类别的机制。如何从自定义类别中删除项目?
How to dynamically remove items from custom category in Jumplist (without deleting the jumplist itself).
Here is how i am creating jumplist and 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);
Now, I wish to dynamically add and delete items from this custom category. API code pack seems to provide a mechanism of only adding items to category. How can i remove an item from custom category?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论