FileOpenPicker Class
Definition
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.
Represents a UI element that lets the user choose and open files.
public ref class FileOpenPicker sealed
/// [Windows.Foundation.Metadata.Activatable(Microsoft.Windows.Storage.Pickers.IFileOpenPickerFactory, 65544, "Microsoft.Windows.Storage.Pickers.StoragePickersContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.Storage.Pickers.StoragePickersContract, 65544)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class FileOpenPicker final
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.Windows.Storage.Pickers.IFileOpenPickerFactory), 65544, "Microsoft.Windows.Storage.Pickers.StoragePickersContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.Storage.Pickers.StoragePickersContract), 65544)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class FileOpenPicker
function FileOpenPicker(windowId)
Public NotInheritable Class FileOpenPicker
- Inheritance
- Attributes
Remarks
Supports specifying the initial ___location, extension filters, and text on the commit button.
Constructors
| FileOpenPicker(WindowId) |
Creates a new instance of the FileOpenPicker class, with the specified WindowId to reference the parent for the file picker dialog. |
Properties
| CommitButtonText |
Specifies the text displayed on commit button. If not specified, system default text is used. |
| FileTypeChoices | |
| FileTypeFilter |
Specifies the file extensions filters. If not specified, the control defaults to all types |
| SuggestedFolder | |
| SuggestedStartFolder | |
| SuggestedStartLocation |
Specifies the initial ___location of the file picker when it is opened. |
| ViewMode |
The view mode of the file picker. This property is used to specify how the files are displayed in the file picker. |
Methods
| PickMultipleFilesAsync() |
Displays a dialog that allows users to select and open multiple files. |
| PickSingleFileAsync() |
Displays a file open picker dialog that allows users to select and open a single file. |