如何将WPF Jumplist添加到跳转路径?

时间:2017-01-17 14:00:50

标签: c# wpf jump-list

如何添加WPF窗口Jumplist jumpPath? 我的代码:

JumpList jumpList = new JumpList();
jumpList.ShowRecentCategory = true;
jumpList.ShowFrequentCategory = true;
JumpList.SetJumpList(Application.Current, jumpList);

JumpPath jumpPath = new JumpPath();
jumpPath.Path = @"C:\see.txt";
jumpList.JumpItems.Add(jumpPath);
jumpList.Apply();

不向我的应用程序显示此文件“C:\ see.txt”。 但添加jumptask显示我的应用程序。例如:

JumpTask jumpTask = new JumpTask();
jumpTask.Title = "Notepad";
jumpTask.Description = "JumpTask to open Notepad";
jumpTask.ApplicationPath = @"%windir%\system32\notepad.exe";
jumpTask.IconResourcePath = @"%windir%\system32\notepad.exe";
jumpTask.IconResourceIndex = 0;
jumpList.Apply();

1 如何在wpf中使用JumpPath?

0 个答案:

没有答案