Art*_*ial 12 c# xaml windows-8 fileopenpicker 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();
Run Code Online (Sandbox Code Playgroud)
这产生了一个很好的界面(例子),但在Windows 10中,相同的代码显示与OpenFileDialog相同的界面(例子),这在触摸屏上很难使用.有谁知道如何在Windows 10中获得Windows 8/8.1样式的FileOpenPicker,或者知道另一种选择?
归档时间: |
|
查看次数: |
886 次 |
最近记录: |