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(); }
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
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();
}