是否有用于保存.NET MAUI中文件的对话框?
.NET MAUI提供了一个FilePicker,以显示一个本机对话框,您可以在其中从设备中选择文件。
有没有办法显示保存文件的对话框? (您可以在其中选择路径并输入文件名,...)。
我在.net maui doc中没有找到任何东西,而是阅读 this stackoverflow问题以实现一个问题folderpicker,但这并不是我需要的。
.NET MAUI provides a FilePicker to show a native Dialog where you can pick a file from the device.
Is there a way to show a dialog for saving files? (where you can select a path and enter an filename, ...).
I didn't find anything in the .NET MAUI doc and read this StackOverflow question to implement a FolderPicker, but this is not exactly what I need.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
现在没有这样的事情,我无论如何都不知道。我们正在考虑将类似的东西添加到.NET MAUI社区工具包中,您可以找到讨论,甚至可以找到一些实现详细信息在这里。确保在那里使您的兴趣知道。
通过链接的堆栈溢出问题,至少在Windows和MacOS上,您也应该自己构建一些东西。
Right now there is no such thing, not that I know of anyway. We are considering adding something like that to the .NET MAUI Community Toolkit, you can find the discussion and even some implementation details here. Make sure to make your interest known there.
With the linked Stack Overflow question you should be well on your well to build something yourself as well, at least for Windows and macOS.
.NET MAUI社区工具包( https://github.com/communitytooltooltoolkit/maui
现在 ) (用于选择文件)和fileSaver(用于选择要保存的位置)对话/控制
文件保护信息: https://learn.microsoft.com/en-us/dotnet/communitytooltooltooltoolkit/maui/maui/maui/maui/sentials/file-saver?tabs = windows
? href =“ https://i.sstatic.net/zbuo3.png” rel =“ nofollow noreferrer”> ScreenShot
The .Net Maui community toolkit (https://github.com/CommunityToolkit/Maui)
now has FilePicker (for choosing files) and FileSaver (for choosing a location to be saved) dialogs/controls
FileSaver info here: https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/essentials/file-saver?tabs=windows
screenshot