繁体   English   中英

访问不在Windows Phone 7上的隔离存储中的文件的文件名

[英]Access filenames of files that are not in Isolated Storage on Windows Phone 7

是否可以访问应用程序提供的文件夹/文件(不在独立存储中)?

我为我的应用设置了一组警报声音,希望用户能够选择他们想要使用的声音。 我只想访问文件名,以便我可以建立供用户选择的列表。 这可能吗?

我建议您创建一个XML文件,其中包含文件的路径列表。 对于前。

<?xml version="1.0" encoding="utf-8"?>
<TestsURIsList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <URIs>
    <TestUri>
      <TestName>Short funny test</TestName>
      <TestDesc>Thus it's a very small test that contains only 2 questions it can tell you a lot about yourself. Just try it and you'll see :)</TestDesc>
      <ImageURI>img/questionblack.JPG</ImageURI>
      <TestXMLSource>ReadyTests/SmallestTest.xml</TestXMLSource>
      <CustomURIPage />
    </TestUri>

    <TestUri>
      <TestName>Tsukanov's test</TestName>
      <TestDesc>Learn you own time unit and all the information it can give</TestDesc>
      <ImageURI>TsukanovTest/temperaments_small.png</ImageURI>
      <TestXMLSource />
      <CustomURIPage>/TsukanovTest/TsukanovTestPage.xaml</CustomURIPage>
    </TestUri>
  </URIs>

比起您使用xml阅读器打开此文件并进行解析并显示给用户。 希望能帮助到你

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM