Microsoft.Windows.Storage.Pickers Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The Microsoft.Windows.Storage.Pickers API in the Windows App SDK lets desktop applications (like WinUI) present a streamlined UI for selecting files or folders, modifying filenames and extensions, and accessing paths — all while integrating seamlessly across Windows desktops.
Classes
| FileOpenPicker |
Represents a UI element that lets the user choose and open files. |
| FileSavePicker |
Represents a dialog that allows the user choose a file and location to save. |
| FolderPicker |
Represents a dialog that allows the user to select a folder. |
| PickFileResult |
Represents the result of a file picking operation. This is a lightweight class that contains a string attribute representing the file path. |
| PickFolderResult |
Represents the result of a folder picking operation. This is a lightweight class that contains a string attribute representing the folder path. |
Enums
| PickerLocationId |
Specifies the default folder or library that a picker starts from or displays to the user. |
| PickerViewMode |
Indicates the view mode that the file picker is using to present items. |
Remarks
The file and folder picker APIs (Windows.Storage.Pickers) in the Windows SDK don't work when apps run as adminstator (elevated mode). To address this gap, the Microsoft.Windows.Storage.Pickers APIs are added and support file and folder selection in elevated mode. It's designed for desktop apps and uses a WindowId property to link the picker to its host window.