diff --git a/src/Uno.UI.Runtime.Skia.X11/LinuxFilePickerExtension.cs b/src/Uno.UI.Runtime.Skia.X11/LinuxFilePickerExtension.cs index cfb888868139..11db5b2f3921 100644 --- a/src/Uno.UI.Runtime.Skia.X11/LinuxFilePickerExtension.cs +++ b/src/Uno.UI.Runtime.Skia.X11/LinuxFilePickerExtension.cs @@ -139,11 +139,11 @@ public async Task> PickFilesAsync(CancellationToken token, var requestPath2 = await fileChooser.OpenFileAsync(window, title, new Dictionary { { "handle_token", handleToken }, - { "accept_label", string.IsNullOrEmpty(picker.CommitButtonText) ? ResourceAccessor.GetLocalizedStringResource("FILE_PICKER_ACCEPT_LABEL") : picker.CommitButtonText }, + { "accept_label", string.IsNullOrEmpty(picker.CommitButtonTextInternal) ? ResourceAccessor.GetLocalizedStringResource("FILE_PICKER_ACCEPT_LABEL") : picker.CommitButtonTextInternal }, { "multiple", multiple }, { "directory", directory }, - { "filters", GetPortalFilters(picker.FileTypeFilter) }, - { "current_folder", Encoding.UTF8.GetBytes(PickerHelpers.GetInitialDirectory(picker.SuggestedStartLocation)).Append((byte)'\0') } + { "filters", GetPortalFilters(picker.FileTypeFilterInternal) }, + { "current_folder", Encoding.UTF8.GetBytes(PickerHelpers.GetInitialDirectory(picker.SuggestedStartLocationInternal)).Append((byte)'\0') } }); if (requestPath != requestPath2) diff --git a/src/Uno.UWP/Storage/Pickers/FileOpenPicker.cs b/src/Uno.UWP/Storage/Pickers/FileOpenPicker.cs index a44a723b6e60..0a1e4c0527db 100644 --- a/src/Uno.UWP/Storage/Pickers/FileOpenPicker.cs +++ b/src/Uno.UWP/Storage/Pickers/FileOpenPicker.cs @@ -47,6 +47,10 @@ public string CommitButtonText set => _commitButtonText = value ?? throw new ArgumentNullException(nameof(value)); } + string IFilePicker.CommitButtonTextInternal => CommitButtonText; + PickerLocationId IFilePicker.SuggestedStartLocationInternal => PickerLocationId.DocumentsLibrary; + IList IFilePicker.FileTypeFilterInternal => new FileExtensionVector(); + #if __SKIA__ || __WASM__ || __IOS__ || __ANDROID__ || __MACOS__ public FileOpenPicker() { diff --git a/src/Uno.UWP/Storage/Pickers/FolderPicker.cs b/src/Uno.UWP/Storage/Pickers/FolderPicker.cs index 5d72260907de..2c87c24e855e 100644 --- a/src/Uno.UWP/Storage/Pickers/FolderPicker.cs +++ b/src/Uno.UWP/Storage/Pickers/FolderPicker.cs @@ -57,6 +57,10 @@ public string CommitButtonText set => _commitButtonText = value ?? throw new ArgumentNullException(nameof(value)); } + string IFilePicker.CommitButtonTextInternal => CommitButtonText; + PickerLocationId IFilePicker.SuggestedStartLocationInternal => PickerLocationId.DocumentsLibrary; + IList IFilePicker.FileTypeFilterInternal => new FileExtensionVector(); + #if __SKIA__ || __MACOS__ || __WASM__ || __IOS__ || __ANDROID__ public FolderPicker() { diff --git a/src/Uno.UWP/Storage/Pickers/IFilePicker.cs b/src/Uno.UWP/Storage/Pickers/IFilePicker.cs index 4f82dd5a20cc..163bb54650eb 100644 --- a/src/Uno.UWP/Storage/Pickers/IFilePicker.cs +++ b/src/Uno.UWP/Storage/Pickers/IFilePicker.cs @@ -3,7 +3,7 @@ namespace Windows.Storage.Pickers; internal interface IFilePicker { - string CommitButtonText { get; } - IList FileTypeFilter { get; } - PickerLocationId SuggestedStartLocation { get; } + string CommitButtonTextInternal { get; } + IList FileTypeFilterInternal { get; } + PickerLocationId SuggestedStartLocationInternal { get; } }