Daniel
Daniel

Reputation: 283

Is there a dialog for saving files in .NET MAUI?

.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.

Upvotes: 16

Views: 6270

Answers (2)

Mark Redman
Mark Redman

Reputation: 24515

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

Upvotes: 5

Gerald Versluis
Gerald Versluis

Reputation: 34013

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.

Upvotes: 7

Related Questions