You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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后的跳转列表

  • 应用CustomCategory后的跳转列表:
    应用CustomCategory后的跳转列表

内容的提问来源于stack exchange,提问作者CocoaMix86

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.22 17:14:53