Refresh text put in code behind

Mar 7 at 2:37 PM
Hi,

Thanks for your extension !

Just one thing, I put text in code behind :
TextBlock tb = new TextBlock();
 tb.Text = GetUIString("myKey");

public string GetUIString(string key)
        {
            string uiString;
            LocExtension locExtension = new LocExtension("myAsselbly:I18n:" + key);
            locExtension.ResolveLocalizedValue(out uiString);
            return uiString;
        }
When I change the language all my string put in XAML are updated but not the others...

Thanks for your help!
Coordinator
Mar 8 at 10:20 AM
Hi,

Here we have a code example how to do code behind binding.

So instead setting the value your self you establish the binding to the textbox.
I hope that helps.

Cheers
Mar 14 at 1:13 PM
That was it!
Coordinator
Mar 15 at 8:17 AM
You're welcome!