是否有用于保存.NET MAUI中文件的对话框?

发布于 2025-01-31 03:27:19 字数 295 浏览 1 评论 0原文

.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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

诗化ㄋ丶相逢 2025-02-07 03:27:19

现在没有这样的事情,我无论如何都不知道。我们正在考虑将类似的东西添加到.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.

仄言 2025-02-07 03:27:19

.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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文