Skip to content

Set Windows Folder Picker Initial Path - #3078

Merged
TheCodeTraveler merged 3 commits into
mainfrom
Update-Windows-SDK-to-v2.0.0
Jul 10, 2026
Merged

Set Windows Folder Picker Initial Path#3078
TheCodeTraveler merged 3 commits into
mainfrom
Update-Windows-SDK-to-v2.0.0

Conversation

@TheCodeTraveler

@TheCodeTraveler TheCodeTraveler commented Feb 8, 2026

Copy link
Copy Markdown
Collaborator

Description of Change

This PR bumps the <PackageReference Include="Microsoft.WindowsAppSDK"/> to v2.0.0 enabling the use of Microsoft.Windows.Storage.Pickers.FolderPicker.SuggestedFolder

Linked Issues

Fixes the feature initially added in #3030 which was temporarily removed in #3076.

PR Checklist

Additional information

This PR will remain in Draft until Microsoft.WindowsAppSDK v2.0.0 is promoted to a stable release

Copilot AI review requested due to automatic review settings February 8, 2026 18:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Windows-specific folder picker implementation to support setting an initial folder by upgrading the Windows App SDK dependency and wiring the initial path into the picker configuration.

Changes:

  • Bump Microsoft.WindowsAppSDK to 2.0.0 for the Windows target framework in CommunityToolkit.Maui.Core.
  • Enable FolderPicker.SuggestedFolder on Windows by assigning the initialPath argument.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/CommunityToolkit.Maui.Core/Essentials/FolderPicker/FolderPickerImplementation.windows.cs Uses the initialPath parameter to set the Windows folder picker’s suggested initial folder.
src/CommunityToolkit.Maui.Core/CommunityToolkit.Maui.Core.csproj Updates the Windows App SDK package reference to enable the required picker API.

@dotnet-policy-service dotnet-policy-service Bot added stale The author has not responded in over 30 days help wanted This proposal has been approved and is ready to be implemented labels Mar 11, 2026
@VladislavAntonyuk
VladislavAntonyuk marked this pull request as ready for review July 10, 2026 15:20
@VladislavAntonyuk VladislavAntonyuk removed help wanted This proposal has been approved and is ready to be implemented stale The author has not responded in over 30 days labels Jul 10, 2026
@VladislavAntonyuk VladislavAntonyuk self-assigned this Jul 10, 2026
@TheCodeTraveler

Copy link
Copy Markdown
Collaborator Author

Thanks Vlad! Approved

@TheCodeTraveler
TheCodeTraveler merged commit 7a3fe56 into main Jul 10, 2026
9 of 10 checks passed
@TheCodeTraveler
TheCodeTraveler deleted the Update-Windows-SDK-to-v2.0.0 branch July 10, 2026 16:34
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants