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 .............