WinForms中JumpList设置CustomCategory后自定义分类项不显示
WinForms JumpList指定CustomCategory后项不显示问题
在WinForms开发场景下,为JumpList添加JumpTasks时指定CustomCategory属性后,对应项无法在跳转列表中显示。当前使用的代码如下:
private void JumpListUpdate() { JumpList jml = new JumpList(); jml.ShowRecentCategory = true; jml.ShowFrequentCategory = true; foreach (string file in Properties.Settings.Default.Recentfiles) { JumpTask jmp = new JumpTask(); jmp.Title = file; jmp.CustomCategory = "Levels"; jml.JumpItems.Add(jmp); } jml.Apply(); }
若移除jmp.CustomCategory = "Levels";语句,跳转列表可正常显示文件路径,但这些项会默认归类到“Tasks”分类中。以下分别是两种情况的跳转列表截图:
移除CustomCategory后的跳转列表:

应用CustomCategory后的跳转列表:

内容的提问来源于stack exchange,提问作者CocoaMix86
相关产品推荐
相关产品推荐

