Friday 11 July 2014

How to set default .xaml page in a Silverlight control if i have more .xaml files?

How to set default .xaml page in a Silverlight control if i have more .xaml files?
Answser is in app.xaml we have to change....
Just see Application_Startup event in app.xaml.cs
private void Application_Startup(object sender, StartupEventArgs e)
{
this.RootVisual = new MainPage();
}
Application_Startup is importent one.
Here we can change the startup page of the silverlight.
Right now in the above code startup page is “MainPage”.
If you want to make some other page as a startup page, just give the new xaml page class name in the place of MainPage();
So when you runn the application new xaml will be the first page in the load.