Saturday, April 9, 2011

set startup page in silverlight

Q. How do I set the Startup page in silverlight?
A: you have to assign one of your .xaml page to the RootVisual element in the App.xaml.cs file in the Application_Startup event as below.
 private void Application_Startup(object sender, StartupEventArgs e)this.RootVisual = new Details();



whichever xaml page you want to display to the user that page object has to be created and assigned here.

No comments:

Post a Comment