Official API Review for new functionalities of Storage.Pickers: SettingsIdentifier; FileTypeIndex; Title; PickMultipleFoldersAsync; ShowOverwritePrompt; CreateNewFileIfNotExists #6051
+179
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request updates the Storage.Pickers API specifications and documentation to add new customization and usability features to the
FileOpenPicker,FileSavePicker, andFolderPickerclasses. The changes introduce properties for dialog title and persistent settings, allow specifying the default file type filter, and add support for picking multiple folders. These enhancements are reflected in both the API definitions and usage examples.Adding properties:
Title
Titleproperties toFileOpenPicker,FileSavePicker, andFolderPicker, enabling custom dialog titles and persistent picker state across sessions. ([1], [2], [3], [4], [5], [6])Related:
SettingsIdentifier
SettingsIdentifierproperties toFileOpenPicker,FileSavePicker, andFolderPicker, enabling custom dialog titles and persistent picker state across sessions. ([1], [2], [3], [4], [5], [6])Related:
FileTypeIndex
FileTypeIndexproperty toFileOpenPickerandFileSavePicker, allowing developers to set the default selected file type filter by index (1-based). This is documented and shown in usage examples. ([1], [2], [3], [4], [5], [6], [7], [8])Related:
FileSavePicker.ShowOverwritePrompt & FileSavePicker.CreateNewFileIfNotExists
FileSavePicker:ShowOverwritePromptandCreateNewFileIfNotExists.ShowOverwritePromptdefault totrueand control whether the picker warns about overwriting when user picked an existing file via FileSavePicker.CreateNewFileIfNotExistsdefault totrueand control whether to auto-create an empty file when the picked file doesn't exists.Related:
Adding method:
FolderPicker.PickMultipleFoldersAsync
PickMultipleFoldersAsyncmethod toFolderPicker, enabling selection of multiple folders in a single operation. API definitions, documentation, and code samples have been updated to reflect this feature. ([1], [2], [3]`)Related: