如何添加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?