We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avalonia provides managed dialogs.
After opening UseManagedSystemDialogs, OpenFileDialog opens abnormally. Add support for managed dialogs.
How to test:
UseManagedSystemDialogs()
private async Task OnImportPicture() { if (Application.Current?.ApplicationLifetime is not IClassicDesktopStyleApplicationLifetime desktop || desktop.MainWindow?.StorageProvider is not { } provider) { throw new NullReferenceException("Missing StorageProvider instance."); } IReadOnlyList<IStorageFile> files = await provider.OpenFilePickerAsync(new FilePickerOpenOptions { Title = "Choose File", AllowMultiple = false }).ConfigureAwait(true); if (files.Count >= 1) { string filePath = files[0].TryGetLocalPath(); if (File.Exists(filePath)) { Picture = filePath; } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Avalonia provides managed dialogs.
After opening UseManagedSystemDialogs, OpenFileDialog opens abnormally. Add support for managed dialogs.
How to test:
UseManagedSystemDialogs()
configuration to AppBuilderExample of calling a window:
The text was updated successfully, but these errors were encountered: