Can't Get WindowsApiCodePack ShellFile Thumbnail Async
问题 I am trying to get the thumbnails for files in a directory asynchronously. All files except PDFs seem to work async. if (System.IO.File.Exists(filePath)) { var task = await Task.Factory.StartNew(async () => { using(ShellFile shellFile = ShellFile.FromFilePath(filePath)) { ImageSource source = shellFile.Thumbnail.MediumBitmapSource; source.Freeze(); return source; } }); image.Dispatcher.Invoke(() => image.Source = task.Result); } All other files return correctly. However, if I call all of this