I have initParams tag, which specify which child window to load in a navigation based Silverlight application. I set it in web project. Consume it in App.xaml.cs inside Application_Startup event.
But, i need to pass this to MainPage.xaml.cs, so that i could load the appropriate child window. How do it set it with this.RootVisual?
The content of
InitParamsis also available statically as:-However why would you want to pass this to
MainPageonly to have it replace theRootVisual? It would be better for the code in App.xaml.cs to determine which page should be theRootVisualand assign it once.