Set startup page in Silverlight

Source: Internet
Author: User

In Silverlight, how does one set the startup page? When a new silverliht page or project is created, an app exists. the XAML page, which is a Silverlight application file derived from the application class. In a Silverlight application project, this file must be included, which specifies the startup page of the application, and other settings of the application. When the Silverlight application runs in the browser, the Silverlight plug-in is responsible for initializing the class.

 

 1 private void application_startup (Object sender, startupeventargs E)
2 {
3 This. rootvisual = new silverlightcontrol1 (); // page ();
4}

 

 

On the app. XAML. CS page, set the value of rootvisual in the application_startup Method to the object on the page you want to start.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.