Home > DeveloperSection > Interviews > How can you change the startup page of silverlight application?

Posted on    March-11-2011 12:00 AM

 SilverLight SilverLight 
Ratings:
 1 Answer(s)
  1483  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

Points:2550
Posted on    March-11-2011 1:00 AM

Open the App.xaml.cs file

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();
}

Don't want to miss updates? Please click the below button!

Follow MindStick