I have an UWP app with two languages. For some labels I've used: Loader.GetString("LableName")
in code-behind and for the others have used: x:Uid
in XAML.
Users can change the CurrentCulture
using a button like this:
CultureInfo.CurrentCulture = new CultureInfo("fa-IR");
For the first time totally work correct,
But for the next times, after the button is clicked, those labels that have bound in the code-behind will work properly,
But those that have bound in the XAML with X:Uid
, still display previous language resource strings.
Can someone help me?
You can use the button property: double click on the button, after you have to set the value of the label in the method "button_click".