Dialogs
Work in Progress
This guide is under development. Check back soon!
Overview
Hermes provides native file and folder dialogs that match each platform.
Quick Reference
csharp
// Open file dialog
var file = await window.Dialogs.ShowOpenFileDialogAsync(new OpenFileOptions
{
Title = "Select a file",
Filters = new[] { new FileFilter("Text Files", "*.txt") }
});
// Save file dialog
var savePath = await window.Dialogs.ShowSaveFileDialogAsync(new SaveFileOptions
{
Title = "Save as",
DefaultFileName = "document.txt"
});
// Folder selection
var folder = await window.Dialogs.ShowFolderDialogAsync(new FolderOptions
{
Title = "Select output folder"
});Coming Soon
- File filters
- Multi-select
- Default paths
- Platform differences
