Downloading Files from SkyDrive

You can use the WL.backgroundDownload() method to download files from a user’s SkyDrive. When you call this method, you supply the path to the file on the user’s SkyDrive and the StorageFile where the file is saved.

Let me modify the ListView which we discussed in the previous section so it supports downloading files. I’ll modify the ListView so that when you click a file in the ListView, a save file screen will appear, which enables you to save the file from the SkyDrive to your local hard drive (see Figure 14.17).

Image

FIGURE 14.17 Saving a file from SkyDrive

First, I need to modify the options for the ListView so ...

Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.