我正在Windows11上的VS中创建一个Windows11,当我试图运行我的文件选择器函数: System.NotImplementedException:‘成员IAsyncOperation FileOpenPicker.PickMultipleFilesAsync()不是在not中实现时,会得到这个错误。’
“守则”:
var picker = new FileOpenPicker();
picker.ViewMode = PickerViewMode.Thumbnail;
picker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
picker.FileTypeFilter.Add(".png");
var files = await picker.PickMultipleFilesAsync();
if(files!=null){//stuff n things}
发布于 2022-12-04 02:48:37
Windows 11有自己的打开文件的方法。FilePicker将无法在新的应用程序环境中工作。
https://stackoverflow.com/questions/74671505
复制相似问题