I have the following problem. My WPF solution include two resx files with only two rows
Resources.resx -Name: IsManager Value: Yes | Name: IsNotManager Value: No
Resources.pl-PL.resx -Name: IsManager Value : Tak | Name: IsNotManager Value: Nie
I also have simple textblock in MainWindow
<TextBlock Text="{x:Static prop:Resources.IsManager}" />
Question is why when I change CurrentUICulture to pl-PL, the text property in TextBlock doesn't change ? I understand that property is initialized only once and I should 'refresh' the value of this property, but is there any option to do this automaticly ? Below code where I change it.
private void Button_Click_1(object sender, RoutedEventArgs e)
{
Thread.CurrentThread.CurrentUICulture = new CultureInfo("pl-PL");
}
What can I do to change this Text property ?