Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add pickers support #4818

Closed
Gaoyifei1011 opened this issue Oct 20, 2024 · 3 comments
Closed

Please add pickers support #4818

Gaoyifei1011 opened this issue Oct 20, 2024 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@Gaoyifei1011
Copy link

Describe the bug

Please add pickers support

-------------------------------------

请添加选择器支持


In WinUI 3, when the application is running in privilege mode (administrator mode), calling UWP's FilePicker, FileSavePicker and FolderPicker will cause an exception. Microsoft in official document provided by the solution is introduced Microsoft.Windows.CsWin32 Nuget package and introduce IFileDialog COM interfaces to create the three types of files (folders) picker, this for ordinary or just contact WinUI developed user very unfriendly, And the invocation of this API is not very modern. Hopefully, the Windows App SDK team will provide a modern FilePicker, FileSavePicker, and FolderPicker for ordinary users to use in administrator mode.

-------------------------------------

在 WinUI 3 中,如果应用程序处于提权模式下运行时(管理员模式),调用 UWP 的 FilePicker,FileSavePicker和 FolderPicker 会发生异常。微软在文档官方提供的解决方案是引入 Microsoft.Windows.CsWin32 Nuget 包并引入 IFileDialog COM 接口去创建这三种类型的文件(夹)选取器,这对于普通或者刚接触 WinUI 开发的用户非常不友好,而且这个 API 的调用还不是很现代化。希望 Windows App SDK 团队能提供一个现代化的 FilePicker,FileSavePicker 和 FolderPicker,方便普通用户在管理员模式下调用。


Question links (问题链接)
#2504
microsoft/WinUI-Gallery#1631
#4699
microsoft/microsoft-ui-xaml#9557
microsoft/microsoft-ui-xaml#8026
#4743
#4625
#3658
#3536
#1295
#8

Steps to reproduce the bug

None

Expected behavior

Provide a modern FilePicker, FileSavePicker, and FolderPicker for ordinary users to use in administrator mode.

-------------------------------------

提供一个现代化的 FilePicker,FileSavePicker 和 FolderPicker,方便普通用户在管理员模式下调用。

Screenshots

No response

NuGet package version

Windows App SDK 1.6.1: 1.6.240923002

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

IDE

Visual Studio 2022

Additional context

None

@mominshaikhdevs
Copy link

mominshaikhdevs commented Oct 20, 2024

as you know it already, this feature request is essentially a dupe of (#2504 and #8.).


these "Improved FileSystem APIs" will have to work both --

  1. in AppContainer/AppContainer for Win32 apps #219 and
  2. without AppContainer (both Medium IL and High IL/Trying to use a FileOpenPicker while running the app as Administrator will crash the app #2504), otherwise we will be in the same current mess.

@Gaoyifei1011
Copy link
Author

as you know it already, this feature request is essentially a dupe of (#2504 and #8.).

these "Improved FileSystem APIs" will have to work both --

  1. in AppContainer/AppContainer for Win32 apps #219 and
  2. without AppContainer (both Medium IL and High IL/Trying to use a FileOpenPicker while running the app as Administrator will crash the app #2504), otherwise we will be in the same current mess.

Thank you for your reminding. I am aware of the situation, but after all this time there has been no response. So I raised the issue again, hoping that the Windowsappsdk team would rethink this type of issue

感谢您的提醒。我知道这个情况,但是经过这么长时间都没有回应。所以我再次提出这个问题,希望Windowsappsdk团队能重新思考一下这一类issue

@RDMacLachlan RDMacLachlan added duplicate This issue or pull request already exists and removed needs-triage labels Oct 21, 2024
@RDMacLachlan
Copy link
Member

Duplicate.

@RDMacLachlan RDMacLachlan closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants