共用方式為


Working with File Pickers (XAML)

[This article is for Windows 8.x and Windows Phone 8.x developers writing Windows Runtime apps. If you’re developing for Windows 10, see the latest documentation]

This section includes Quickstart and How-to topics explaining and illustrating how to incorporate file pickers into your apps.

In this section

Topic Description

How to save files through file pickers

Use FileSavePicker to let users specify the name and location where they want to save your app’s content.

Quickstart: Accessing files with file pickers

Access files and folders through the file picker by letting users pick files and folders. You can use the FileOpenPicker class to gain access to files and the FolderPicker to gain access to folders.

How to continue your Windows Phone app after calling a file picker

When you call a file picker from a Windows Phone Store app, your app is deactivated until the file picker returns the selection made by the user. On low-memory phones, however, your app may be terminated. Because of this possibility, you have to call different methods in a Windows Phone Store app than you call in a Windows Store app to continue your app after a file picker operation. The following table shows these methods.