0
是否可以訪問隨應用程序提供的文件夾/文件(不在獨立存儲中)?訪問不在Windows Phone 7上的獨立存儲中的文件的文件名
我爲我的應用程序提供了一組鬧鈴聲音,並希望用戶能夠選擇他們想使用的聲音。我只想訪問文件名,以便我可以建立一個供用戶選擇的列表。這可能嗎?
是否可以訪問隨應用程序提供的文件夾/文件(不在獨立存儲中)?訪問不在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閱讀這個文件並解析,並顯示給用戶。 希望它有幫助