While developing for the Windows 8 Platform, you'd like to use items in a resource file for a Windows store application. Here I'll show you how to get all the strings in a Resource file.
If you're planning to use Resource Files to write items and then read them, you're on the wrong track.
using Windows.ApplicationModel.Resources.Core; using Windows.ApplicationModel.Resources;
List<string> reslist = new List<string>(); ResourceMap rmap = ResourceManager.Current.MainResourceMap;
foreach (string str in rmap.Keys)
{
if ((str.StartsWith("Resources")))
{reslist.Add(str.Substring(10));}
else
}
foreach (string str in reslist)
ResourceLoader rl = new ResourceLoader("Resources");listBox1.Items.Add(rl.GetString(str));
Microsoft's Windows AppStudio