How to get the recent items from the JumpList?

点点圈 提交于 2021-01-28 04:26:23

问题


I'm using the Windows API Code pack to create a list of recent documents that are displayed in the jump list. It's working nice. I use this code to create entries:

JumpTask jumpTask = new JumpTask()
{
  Title = "RecentTest",
  Desciption = "...",
  ...
}

JumpList.AddToRecentCategory(jumpTask);

And I can find them and click them, working fine.

However, now I want to read these items and do something with them in my appliation (like show them, or open the last recent on application start).

My problem is: I can't find any information about reading the recent entries. I've tried e.g. this:

JumpList list = JumpList.GetJumpList(App.Current);

But this always returns a list without any entries.

How can I get the recent items?

来源:https://stackoverflow.com/questions/29535782/how-to-get-the-recent-items-from-the-jumplist

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!