I have a button with a clicked event that triggers the following:
Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("da");
Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("da");
CultureInfo.CurrentCulture = new CultureInfo("da-DK", false);
CultureInfo.CurrentUICulture = new CultureInfo("da-DK", false);
Below the button, I have a Label, with the text assigned as a value in an .resx-file. The solution has various labels, on various pages, that are all set with .resx-files.
When I click the button, how can I update all pages to switch to the new culture?
Edit: My main problem here was refreshing the app/triggering the new culture. See that accepted answer for how I solved this.