FolderPicker class

FolderPicker class

Represents a UI element that lets the user choose folders.

Syntax


var folderPicker = new Windows.Storage.Pickers.FolderPicker();

Members

The FolderPicker class has these types of members:

Constructors

The FolderPicker class has these constructors.

ConstructorDescription
FolderPicker Creates a new instance of a FolderPicker.

 

Methods

The FolderPicker class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
PickFolderAndContinue Shows the file picker so that the user can pick a folder, deactivating and the app and reactivating it when the operation is complete. (Windows Phone Store app)
PickSingleFolderAsync Shows the folderPicker object so that the user can pick a folder. (Windows Store app)

 

Properties

The FolderPicker class has these properties.

PropertyAccess typeDescription

CommitButtonText

Read/write

Gets or sets the label text of the folder picker's commit button.

ContinuationData

Read-only

Gets a set of values to be populated by the app before a PickFolderAndContinue operation that deactivates the app in order to provide context when the app is activated. (Windows Phone Store app)

FileTypeFilter

Read-only

Gets the collection of file types that the folder picker displays.

SettingsIdentifier

Read/write

Gets or sets the settings identifier associated with the with the current FolderPicker instance.

SuggestedStartLocation

Read/write

Gets or sets the initial location where the folder picker looks for folders to present to the user.

ViewMode

Read/write

Gets or sets the view mode that the folder picker uses to display items.

 

Remarks

To get started accessing files and folders file pickers, see Open files and folders with a picker.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0 [for Xbox, see UWP features that aren't yet supported on Xbox]

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Storage.Pickers
Windows::Storage::Pickers [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Storage.Pickers
Windows::Storage::Pickers [C++]

Metadata

Windows.winmd

Attributes

[Version(0x06020000)]

 

 

Show:
© 2016 Microsoft