如何枚举在Windows Phone的IsolatedStorage中创建的目录

|| 假设我在IsolatedStorage中创建了许多目录。我想枚举并将它们显示在listBox中,以便选择。范例: 目录 餐馆 饭店 购物中心 .... 我要解决的问题: 列表框将包含这些。如果单击Restuarant,它将获取此目录中存储的所有文件。 谢谢     
已邀请:
        您可以使用IsolatedStorageFile.GetDirectoryNames()枚举目录。
private string[] GetLocationTypes()
{
    using (var store = IsolatedStorageFile.GetUserStoreForApplication())
    {
        return store.GetDirectoryNames();
    }

}
    

要回复问题请先登录注册