Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 2.02 KB

fileopenpicker.md

File metadata and controls

39 lines (23 loc) · 2.02 KB
-api-id -api-type
T:Windows.Storage.Pickers.FileOpenPicker
winrt class

Windows.Storage.Pickers.FileOpenPicker

-description

Represents a UI element that lets the user choose and open files.

-remarks

To get started accessing files and folders file picker, see Quickstart: Accessing files with File Pickers.

-examples

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]

-see-also

File picker sample, Quickstart: Accessing files with File Pickers , Blobs sample