You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After opening UseManagedSystemDialogs, OpenFileDialog opens abnormally. Add support for managed dialogs.
How to test:
Add the UseManagedSystemDialogs() configuration to AppBuilder
Test on dialog windows
Example of calling a window:
privateasyncTaskOnImportPicture(){if(Application.Current?.ApplicationLifetimeis not IClassicDesktopStyleApplicationLifetimedesktop||desktop.MainWindow?.StorageProvideris not {}provider){thrownewNullReferenceException("Missing StorageProvider instance.");}IReadOnlyList<IStorageFile>files=awaitprovider.OpenFilePickerAsync(newFilePickerOpenOptions{Title="Choose File",AllowMultiple=false}).ConfigureAwait(true);if(files.Count>=1){stringfilePath=files[0].TryGetLocalPath();if(File.Exists(filePath)){Picture=filePath;}}}
The text was updated successfully, but these errors were encountered:
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: