繁体   English   中英

Windows 10中的触摸屏友好文件选择器

[英]Touchscreen friendly file picker in Windows 10

我正在寻找适用于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,或者知道另一种选择?

在我的应用程序中,我要求用户选择文件夹(标准文件夹选择器不太友好),但在此之后我已经显示了我自己的自定义控件,其中包含文件夹中的显示文件,让他们以触摸友好的方式选择。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM