This library is a rewrite of nativefiledialog for dotnet.
Include SharpFileDialog namespace and run methods from static class NativeFileDialog
If you want to use filters just create and fill array of NativeFileDialog.Filter structs
usingSharpFileDialog;classExample{staticvoidMain(){if(NativeFileDialog.PickFolder(null,outstring?folder))Console.WriteLine("Selected Folder: "+folder);elseConsole.WriteLine("Dialog was closed");}}Currently supported dialog providers:
- WinAPI (Auto add extension on file save supported)
- GTK
You can use custom provider by setting property NativeFileDialog.Provider or bundled providers with method NativeFileDialog.SetDefaultProvider().
To create custom provider create new class, inherit interface INativeDialogProvider and add implementations.