HOW CAN YOU CHANGE THE STARTUP PAGE OF SILVERLIGHT APPLICATION?

Awadhendra Tiwari

Total Post:0

Points:0
Posted by  Awadhendra Tiwari
 1945  View(s)
Ratings:
Rate this:
  1. Awadhendra Tiwari

    Post:505

    Points:2525
    How can you change the startup page of silverlight application?

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!