I am developping a kiosk app for people come from diffrent countries, UI language should be changed at runtime.
ApplicationLanguages.PrimaryLanguageOverride
can change the text and font shown in pages, but no effect for content in a message dialog, dialogs always shown in a font for the default language.
Some language should not be shown in a font for another language, just like Chinese text should not be shown in a Japanese font.
Is there a way to change the dialog font at runtime, just like ApplicationLanguages.PrimaryLanguageOverride
property for pages?
My solution was to create a Class Language, define there a string Lcid (you may google what is LCID) and List of strings Texts.
Create a static method that will return you all your texts in different languages and fill it:
In your UserControl:
Now you may switch your languages by comparing current LCID and set Texts to the _currentLanguageTexts that should be x:Binded in your XAML.