What is the methodology adopted to change the startup page of any particular Silverlight application?

devquora
devquora

Posted On: Jul 10, 2024

 

In order to change the startup page of any particular Silverlight application, firstly open the App.xaml.cs file. Subsequently in the Application_Startup handler, set the RootVisual property to the particular Silverlight class. Consider the following example:

In order to find the file name: MainPage.xaml, there must exist a class known as MainPage with MainPage.xaml.cs

private void Application_Startup (object sender, StartupEventArgs)
 
{
 
this.RootVisual = new MainPage();
 
}

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Silverlight Interview Questions

    What is the use of Silverlight?

    Silverlight is an open-source development tool by Microsoft used for creating and deploying interactive user experiences, media, and internet applications for web and mobile. This powerful tool enhanc..

    Silverlight Interview Questions

    Can Silverlight be used along with different browsers and operating systems?

    Silverlight is an open-source development tool by Microsoft used for creating and deploying interactive user experiences, media, and internet applications for web and mobile. It works seamlessly acros..

    Silverlight Interview Questions

    List the different components used in Silverlight

    Silverlight is an open-source development tool by Microsoft used for creating and deploying interactive user experiences, media, and internet applications for web and mobile. It works across browsers,..