How to change the default page of the Silverlight?

How to change the default page of the Silverlight application?

The RootVisual property of Application_Startup event in App.xaml file needs to be set to change the default Silverlight application page.

The following code snippet sets the property.
private void Application_Startup(object sender, StartupEventArgs strtevntarg)
   this.RootVisual = new YourPage();
xaml files - Silverlight
xaml files - There are two xaml files are created when a new project in Silverlight is created through Visual Studio...
Backend of the Silverlight application
Visual Basic or Visual C# can be used for authoring code for the backend of the Silverlight application...
How to set Silverlight contents width as 100%.
Usually the UserConrol will be spread full screen. The contents width and height can also be set by using width and height attributes..
Post your comment