App.xaml.cs file. Subsequently in the Application_Startup handler, set the RootVisual property to the particular Silverlight class. Consider the following example :MainPage.xaml, there must exist a class known as MainPage with MainPage.xaml.csprivate void Application_Startup (object sender, StartupEventArgs)
{
this.RootVisual = new MainPage();
}