Navigating up a directory using the pack://siteoforigin



嗨,我正试图使用siteoforigin在文件夹树上导航到一个文件。我可以访问子文件夹,但如何向上导航?

这是我尝试的代码

StreamResourceInfo info = Application.GetRemoteStream(new Uri("pack://siteoforigin:,,,/../Settings.xml", UriKind.RelativeOrAbsolute));

但它不起作用。

您不能。Pack Uri只能访问XBAP所在文件夹及更低文件夹中的文件。不幸的是,没有办法绕过它。

相关内容

最新更新