Controlling the UI Culture from the LocalizabilityViewModel

The viewmodel exposes a list of CultureName objects via its SupportedCultures property. The list of supported cultures is initialized as shown:

readonly List<CultureInfo> supportedCultures = new List<CultureInfo>                                {                                    new CultureInfo("en-US"),                                    new CultureInfo("fr-FR"),                                    new CultureInfo("ar-AE")                                };

A method called SetCulture is used to change the CurrentCulture and CurrentUICulture of the UI thread, as shown in the following excerpt:

void SetCulture(CultureInfo cultureInfo) ...

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.