Updating a Phrase List Programmatically
The VCD file for the app contains only a couple of City phrases, which does not make for a very useful weather app.
To remedy the situation, the viewmodel contains a dictionary of WOEIDs keyed by city name, as shown in the following excerpt:
Dictionary<string, string> woeDictionary = new Dictionary<string, string> { {"Zurich Switzerland", "784794"}, {"Canberra Australia", "1100968"}, {"Bellevue Washington", "2362031"}, {"London England", "44418"}, {"Prague Czech Republic", "796597"}, {"Bangkok Thailand", "1225448"}, {"Paris France", "615702"}, {"Moscow Russia", "2122265"}, {"Madrid Spain", "766273"}, { ...
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.