我正在编写WPF应用程序并希望添加调用跳转列表和打开程序配置,app.config或日志目录的功能。是否有可能(无法找到方法来实现这一点..使用应用程序路径的JumpTasks和带有文件路径的JumpPath,而不仅仅是通过资源管理器打开的路径)?
答案 0 :(得分:1)
找到答案here。似乎JumpList不是为打开与当前程序相关的文件或应用程序而设计的。因此,当我们在资源管理器任务列表中看到目录时,实际上意味着:使用带参数的资源管理器。顺便生病尝试使用它。
的更新强>
用这样的代码制作它:
string explorerPath = @"%windir%\explorer.exe";
JumpTask path = new JumpTask
{
CustomCategory = "Paths",
Title = "Open program directory",
IconResourcePath = explorerPath,
ApplicationPath = explorerPath,
Arguments = @"/root," + AppDomain.CurrentDomain.BaseDirectory,
Description = AppDomain.CurrentDomain.BaseDirectory
};
我在这里留下这个答案,因为有人可能有类似的不理解。