12

我正在寻找适用于 Windows 10 的触摸屏友好文件选择器。在 Windows 8 和 8.1 中,我使用了 FileOpenPicker:

FileOpenPicker fileOpenPicker = new FileOpenPicker();

fileOpenPicker.FileTypeFilter.Add(".wma");
fileOpenPicker.FileTypeFilter.Add(".mp3");
fileOpenPicker.SuggestedStartLocation = PickerLocationId.VideosLibrary;

fileOpenPicker.ViewMode = PickerViewMode.List;

IReadOnlyList<StorageFile> files = await fileOpenPicker.PickMultipleFilesAsync();

这产生了一个很好的界面(示例),但在 Windows 10 中,相同的代码显示与 OpenFileDialog 相同的界面(示例),这很难在触摸屏上使用。有谁知道如何在 Windows 10 中获得 Windows 8/8.1 风格的 FileOpenPicker,或者知道替代方法?

4

1 回答 1

1

在我的应用程序中,我要求用户选择文件夹(使用对触摸不太友好的标准文件夹选择器),但在此之后,我展示了我自己的自定义控件,该控件在文件夹中显示文件并让他们以触摸友好的方式进行选择。

于 2016-04-30T18:01:06.857 回答