December 2014
Intermediate to advanced
512 pages
17h 4m
English
In addition to examining files packaged with your app with a Build Action of Content (as with WPF), this section examines the three types of app files usable by Windows Store and Universal apps: local files, roaming files, and temporary files.
Although you can’t add or edit the files packaged with your app, you can retrieve one as follows:
StorageFolder folder = Package.Current.InstalledLocation;StorageFile file = await folder.GetFileAsync("Assets\\Logo.png");
This file location corresponds to the URI ms-appx:///Assets/Logo.png that you can use in XAML. This works for any files marked with a Build Action of Content in your project.
Read now
Unlock full access