How can you change the startup page of SilevrLight application?AAAnkur Agarwal15yAsked Mar 12, 2011, 2:34 AM5kC#How can you change the startup page of SilevrLight application?
Dharmendra Gaur15y agoPosted Mar 12, 2011, 2:39 AMAccepted answerOpen the App.xaml.cs fileIn the Application_Startup event handler, set the RootVisual property to theinstance of the particular SilverlIght classexample: if we have a file known as MainPage.xaml, a class known as MainPage willbe there in MainPage.xaml.cs.private void Application_Startup(object sender, StartupEventArgs e){this.RootVisual = new MainPage();}0
Dharmendra GaurPosted Mar 12, 2011, 2:39 AM
In the Application_Startup event handler, set the RootVisual property to the
instance of the particular SilverlIght class
example: if we have a file known as MainPage.xaml, a class known as MainPage will
be there in MainPage.xaml.cs.
private void Application_Startup(object sender, StartupEventArgs e)
{
this.RootVisual = new MainPage();
}