none
Force Update On GUI RRS feed

  • Question

  •  

    Hi,

     

    I have added localization on my application. The localization works but the gui does not get updated automatically. How can i force the the application to update the gui automatically ?

     

    Thanks

    Tuesday, November 20, 2007 5:00 PM

Answers

  • Hi,

    Unfortunately, this will not happen automatically. You will have to reinstantiate your user controls or you can refresh a Page. 2 possibilities, I've encountered until now.
    1. Window win = new Window();
    UserControl1 uc1 = new UserControl1();
    win.Content = uc1;
    //change culture
    uc1 = new UserControl1();
    I'm not 100% sure of the last one. I would have to test it.
    2. Window win = new Window();
    Page page = new Page();
    win.Content=page;
    //change culture
    page.Refresh();


    Best regards,

    Benny
    Wednesday, November 21, 2007 8:22 AM