it's actually quite simple
if you want to change the global language:
private void Application_Launching(object sender, LaunchingEventArgs e) { Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("fr-FR"); Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("fr-FR"); } private void Application_Activated(object sender, ActivatedEventArgs e) { Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("fr-FR"); Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("fr-FR"); }
if you want to get a single resource:
CultureInfo c = new System.Globalization.CultureInfo("fr-FR"); var m = AppResources.ResourceManager.GetString(AppResources.MapControlTitle,c));
where AppResourse is your resource (resx) and AppResources.MapControlTitle is the label you want to get.
happy coding (:
EDIT
You can try the following:
Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo ("FR-FR"); YourMapControl.Language = System.Windows.Markup.XmlLanguage.GetLanguage (Thread.CurrentThread.CurrentCulture.Name);
source share