views:

115

answers:

1

i do a localized application using silverligth 4. after changing my culture thread i do

LayoutRoot.Children.Clear();
MainPage MyPage = new MainPage();
LayoutRoot.Children.Add(MyPage);

but i get an error "value does not fall within the expected range" how can i reload the layout to apply the language changing

A: 

Have you tried:-

Application.Current.RootVisual = new MainPage();
AnthonyWJones
it clears but never reload the page content :(
MirooEgypt