AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
25.98k stars 2.25k forks source link

OpenFolderDialog.ShowNewFolderButton #7125

Open mysteryx93 opened 2 years ago

mysteryx93 commented 2 years ago

OpenFolderDialog is missing a New Folder button. Could it be added to have parity with standard Win32 features?

Other missing feature to have parity:

The prompts would be a bit complex to implement considering MessageBox isn't natively part of Avalonia (but should), but some other other features could be added.

maxkatz6 commented 2 years ago

How many of these APIs can be ported to macOS/linux-GTK?

mysteryx93 commented 2 years ago

None are anything fancy, shouldn't be any issue there. All you need for everything else is File.Exists.

DereferenceLinks is the only thing that would vary by platform. Perhaps it could support various types of shortcut files from various OS, without caring what OS is actually running. This would be the most complicated feature but also the least important. I'd put that on the backburner and focus on the rest.

mysteryx93 commented 2 years ago

I'm running the app now. I'm seeing that it's showing the same standard Win32 OpenFolderDialog.

Wow now I'm realizing that ShowNewFolder button doesn't even have any effect in Windows 10! It's there for compatibility reason only. OK never mind for that one. Avalonia is missing HelpRequest event though.