Hello, @Neo Welcome to Microsoft Q&A,
Derive from document, this method will return null if there is no thumbnail image associated with the item. But it hard to reproduce, because, if you can view the file in the file explorer, it means the file contains thumbnail image.
And for your requirement, we suggest add null condition to notice user there is no thumbnail for current file and use try catch block to notice user exception message when getting file's thumbnail.
try
{
var thumbnail = await file.GetScaledImageAsThumbnailAsync(Windows.Storage.FileProperties.ThumbnailMode.SingleItem);
if(thumbnail == null)
{
System.Diagnostics.Debug.WriteLine("----------thumbnail is null--------");
}
else
{
}
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine($"----------{ex.Message}--------");
}
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.