diff --git a/src/Consolonia.Core/Controls/FileOpenPicker.axaml.cs b/src/Consolonia.Core/Controls/FileOpenPicker.axaml.cs index ded8ffc..9b67159 100644 --- a/src/Consolonia.Core/Controls/FileOpenPicker.axaml.cs +++ b/src/Consolonia.Core/Controls/FileOpenPicker.axaml.cs @@ -1,5 +1,6 @@ using System; using Avalonia.Controls; +using Avalonia.Data; using Avalonia.Input; using Avalonia.Interactivity; using Avalonia.Markup.Xaml; @@ -9,6 +10,11 @@ namespace Consolonia.Core.Controls { public partial class FileOpenPicker : DialogWindow { + public FileOpenPicker() + : this(new FilePickerOpenOptions()) + { + } + public FileOpenPicker(FilePickerOpenOptions options) { WindowStartupLocation = WindowStartupLocation.CenterScreen; diff --git a/src/Consolonia.Core/Controls/FileSavePicker.axaml.cs b/src/Consolonia.Core/Controls/FileSavePicker.axaml.cs index 6586628..b20b4b2 100644 --- a/src/Consolonia.Core/Controls/FileSavePicker.axaml.cs +++ b/src/Consolonia.Core/Controls/FileSavePicker.axaml.cs @@ -12,6 +12,10 @@ namespace Consolonia.Core.Controls { public partial class FileSavePicker : DialogWindow { + public FileSavePicker() + : this(new FilePickerSaveOptions()) + { + } public FileSavePicker(FilePickerSaveOptions options) { WindowStartupLocation = WindowStartupLocation.CenterScreen; diff --git a/src/Consolonia.Core/Controls/FolderPicker.axaml.cs b/src/Consolonia.Core/Controls/FolderPicker.axaml.cs index abef115..0305914 100644 --- a/src/Consolonia.Core/Controls/FolderPicker.axaml.cs +++ b/src/Consolonia.Core/Controls/FolderPicker.axaml.cs @@ -9,6 +9,11 @@ namespace Consolonia.Core.Controls { public partial class FolderPicker : DialogWindow { + public FolderPicker() + : this(new FolderPickerOpenOptions()) + { + } + public FolderPicker(FolderPickerOpenOptions options) { WindowStartupLocation = WindowStartupLocation.CenterScreen;