---
title: "How can you change the startup page of silverlight application?"  
description: "How can you change the startup page of silverlight application?"  
author: "Anonymous User"  
published: 2011-03-11  
updated: 2020-09-14  
canonical: https://www.mindstick.com/interview/386/how-can-you-change-the-startup-page-of-silverlight-application  
category: "silverlight"  
tags: ["silverlight"]  
reading_time: 1 minute  

---

# 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();\
}

## Answers

### Answer by Anonymous User

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();\
}


---

Original Source: https://www.mindstick.com/interview/386/how-can-you-change-the-startup-page-of-silverlight-application

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
