Path of Chinese source files in Windows Phone development

Source: Internet
Author: User

Referencing images, XML, and other files is a summary of several path problems that may occur. Incomplete paths may increase with the increase of experience.

The format of referencing an image (such as the icon of ApplicationBar) is as follows: iconuri = "/images/test.png", which is the background image in the configuration file, applicationimageicon is also located in this path format.

This is how xdocument loadeddata = xdocument. Load ("datafile/people. xml") Loads files (such as XML files ");

When a page is redirected, it looks like navigateuri = "/differentpage; component/Newpage/secondpage. XAML? Id = 1 "/>

This method is to add a link address directly in XAML, but if it is accessed in the. CS file like this, the path is another situation:

Navigationservice. navigate (New uri ("/secondpage. XAML", urikind. Relative ));

This method is like the URI in Web development. And the latter part can be written or not written, and the get method is used to transmit data.

It may not be finished. I hope it will be resumed .............

 

Related Article

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.