Skip to content

Conversation

@DinahK-2SO
Copy link

Use the new Microsoft.Windows.Storage.Pickers API from WindowsAppSDK.1.8

picker.FileTypeFilter.Add(".png");

var file = await picker.PickSingleFileAsync();
var picker = new FileOpenPicker(App.window.Id)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think no compliable here, since i tried it.
Even you change to App.Window.AppWindow.Id will not be working in runtime, since i tried it.

Copy link
Contributor

Choose a reason for hiding this comment

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

I can put my version in your PR here.
Basically, beside using our picker, I also get rid of StorageFile in below usage.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, @DinahK-2SO, I found that I cannot apply the file pickers here.
Since 1.8 stable build doesn't have all API need for previous 1.8 experiemental release for this AI project.
And our picker in 1.8 exp4 doesn't work here as well because of localization problem.

Copy link
Author

Choose a reason for hiding this comment

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

My local build has the same issue. I am converting this PR to draft. Let's wait for the samples to migrate to official release.

@DinahK-2SO DinahK-2SO marked this pull request as draft October 9, 2025 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants