-api-id | -api-type |
---|---|
T:Windows.Storage.Pickers.FileOpenPicker |
winrt class |
Represents a UI element that lets the user choose and open files.
To get started accessing files and folders file picker, see Quickstart: Accessing files with File Pickers.
The File picker sample demonstrates how to check whether the app is snapped, how to set file picker properties, and how to show a file picker so that the user can pick one file.
[!code-csharpall_openpicker_checksnapped_showsingle]
[!code-jsall_openpicker_checksnapped_showsingle]
[!code-csharpcs_checksnapped]
Note
You should always make sure that your app is not snapped (or that it can be unsnapped) and set file picker properties regardless of whether the user is picking a single file or multiple files.
[!code-csharpall_openpicker_showmulti]
[!code-jsall_openpicker_showmulti]
File picker sample, Quickstart: Accessing files with File Pickers , Blobs sample