{"id":15035993,"url":"https://github.com/atomsk-0/nativefiledialognet","last_synced_at":"2025-04-23T18:09:19.920Z","repository":{"id":235136655,"uuid":"790153695","full_name":"atomsk-0/NativeFiledialogNET","owner":"atomsk-0","description":"C# Bindings for the crossplatform native file dialog library - nativefiledialog-extended","archived":false,"fork":false,"pushed_at":"2024-12-09T15:44:35.000Z","size":514,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T18:09:14.694Z","etag":null,"topics":["crossplatform","csharp","csharp-library","filedialog","nativefiledialog","nativefiledialog-extended"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/NativeFileDialogNET","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atomsk-0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-22T11:14:15.000Z","updated_at":"2025-02-17T23:28:43.000Z","dependencies_parsed_at":"2024-04-22T11:31:08.014Z","dependency_job_id":"2fc4965d-570e-4326-96cd-6ff950a1c562","html_url":"https://github.com/atomsk-0/NativeFiledialogNET","commit_stats":null,"previous_names":["byte-0x74/nativefiledialognet","atomsk-0/nativefiledialognet"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomsk-0%2FNativeFiledialogNET","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomsk-0%2FNativeFiledialogNET/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomsk-0%2FNativeFiledialogNET/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomsk-0%2FNativeFiledialogNET/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atomsk-0","download_url":"https://codeload.github.com/atomsk-0/NativeFiledialogNET/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250487531,"owners_count":21438612,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crossplatform","csharp","csharp-library","filedialog","nativefiledialog","nativefiledialog-extended"],"created_at":"2024-09-24T20:29:53.461Z","updated_at":"2025-04-23T18:09:19.899Z","avatar_url":"https://github.com/atomsk-0.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NativeFileDialogNET\n\nNativeFileDialogNET is a C# binding for the [nativefiledialog-extended](https://github.com/btzy/nativefiledialog-extended) library. This project allows you to use native file dialog functionalities in your C# applications.\n\n## Usage\n\nHere is a simple example of how to use the library:\n\n```csharp\nusing System.Text;\nusing NativeFileDialogNET;\n\nusing var selectFileDialog = new NativeFileDialog()\n    .SelectFile()\n    .AddFilter(\"Text Files\", \"txt\") // Optionally add filters\n    .AllowMultiple(); // Optionally allow multiple selections\n\nDialogResult result = selectFileDialog.Open(out string[]? output, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments));\nStringBuilder builder1 = new();\nif (result == DialogResult.Okay \u0026\u0026 output != null)\n{\n    foreach (string file in output)\n    {\n        builder1.Append(file).Append(\", \");\n    }\n}\nConsole.WriteLine(result == DialogResult.Okay ? $\"Selected file(s): {builder1}\" : \"User canceled the dialog.\");\n\nusing var selectFolderDialog = new NativeFileDialog()\n    .SelectFolder()\n    .AllowMultiple(); // Optionally allow multiple selections\n\nresult = selectFolderDialog.Open(out string[]? output2,  Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments));\nStringBuilder builder2 = new();\nif (result == DialogResult.Okay \u0026\u0026 output2 != null)\n{\n    foreach (string file in output2)\n    {\n        builder2.Append(file).Append(\", \");\n    }\n}\nConsole.WriteLine(result == DialogResult.Okay ? $\"Selected folder(s): {builder2}\" : \"User canceled the dialog.\");\n\nusing var saveFileDialog = new NativeFileDialog()\n    .SaveFile()\n    .AddFilter(\"Text Files\", \"*.txt\"); // Optionally add filters\n\nresult = saveFileDialog.Open(out string? saveFile, Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), \"DefaultName.txt\");\nConsole.WriteLine(result == DialogResult.Okay ? $\"Selected file: {saveFile}\" : \"User canceled the dialog.\");\n```\n\nContributions are welcome! Please feel free to submit a pull request.\n\n## License\n\nThis project is licensed under the zlib License. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomsk-0%2Fnativefiledialognet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatomsk-0%2Fnativefiledialognet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomsk-0%2Fnativefiledialognet/lists"}