@@ -340,12 +340,12 @@ public async void AddItemsToCollectionAsync(string path)
340340
341341 if ( tabInstance . accessibleContentFrame . SourcePageType == typeof ( GenericFileBrowser ) )
342342 {
343- _options . SetThumbnailPrefetch ( ThumbnailMode . ListView , 20 , ThumbnailOptions . UseCurrentScale ) ;
343+ _options . SetThumbnailPrefetch ( ThumbnailMode . ListView , 20 , ThumbnailOptions . ResizeThumbnail ) ;
344344 _options . SetPropertyPrefetch ( PropertyPrefetchOptions . BasicProperties , new string [ ] { "System.DateModified" , "System.ContentType" , "System.Size" , "System.FileExtension" } ) ;
345345 }
346346 else if ( tabInstance . accessibleContentFrame . SourcePageType == typeof ( PhotoAlbum ) )
347347 {
348- _options . SetThumbnailPrefetch ( ThumbnailMode . ListView , 275 , ThumbnailOptions . UseCurrentScale ) ;
348+ _options . SetThumbnailPrefetch ( ThumbnailMode . ListView , 80 , ThumbnailOptions . ResizeThumbnail ) ;
349349 _options . SetPropertyPrefetch ( PropertyPrefetchOptions . BasicProperties , new string [ ] { "System.FileExtension" } ) ;
350350 }
351351 _options . IndexerOption = IndexerOption . OnlyUseIndexerAndOptimizeForIndexedProperties ;
@@ -356,12 +356,12 @@ public async void AddItemsToCollectionAsync(string path)
356356
357357 if ( tabInstance . accessibleContentFrame . SourcePageType == typeof ( GenericFileBrowser ) )
358358 {
359- _options . SetThumbnailPrefetch ( ThumbnailMode . ListView , 20 , ThumbnailOptions . UseCurrentScale ) ;
359+ _options . SetThumbnailPrefetch ( ThumbnailMode . ListView , 20 , ThumbnailOptions . ResizeThumbnail ) ;
360360 _options . SetPropertyPrefetch ( PropertyPrefetchOptions . BasicProperties , new string [ ] { "System.DateModified" , "System.ContentType" , "System.ItemPathDisplay" , "System.Size" , "System.FileExtension" } ) ;
361361 }
362362 else if ( tabInstance . accessibleContentFrame . SourcePageType == typeof ( PhotoAlbum ) )
363363 {
364- _options . SetThumbnailPrefetch ( ThumbnailMode . ListView , 275 , ThumbnailOptions . UseCurrentScale ) ;
364+ _options . SetThumbnailPrefetch ( ThumbnailMode . ListView , 80 , ThumbnailOptions . ResizeThumbnail ) ;
365365 _options . SetPropertyPrefetch ( PropertyPrefetchOptions . BasicProperties , new string [ ] { "System.FileExtension" } ) ;
366366 }
367367
@@ -515,11 +515,13 @@ private async Task AddFile(StorageFile file, CancellationToken token)
515515 {
516516 try
517517 {
518- var itemThumbnailImg = await file . GetThumbnailAsync ( ThumbnailMode . ListView , 40 , ThumbnailOptions . ReturnOnlyIfCached ) ;
518+ var itemThumbnailImg = await file . GetThumbnailAsync ( ThumbnailMode . ListView , 20 , ThumbnailOptions . ResizeThumbnail ) ;
519519 if ( itemThumbnailImg != null )
520520 {
521521 itemEmptyImgVis = Visibility . Collapsed ;
522522 itemThumbnailImgVis = Visibility . Visible ;
523+ icon . DecodePixelWidth = 20 ;
524+ icon . DecodePixelHeight = 20 ;
523525 await icon . SetSourceAsync ( itemThumbnailImg ) ;
524526 }
525527 else
@@ -540,11 +542,13 @@ private async Task AddFile(StorageFile file, CancellationToken token)
540542 {
541543 try
542544 {
543- var itemThumbnailImg = await file . GetThumbnailAsync ( ThumbnailMode . ListView , 275 , ThumbnailOptions . ReturnOnlyIfCached ) ;
545+ var itemThumbnailImg = await file . GetThumbnailAsync ( ThumbnailMode . ListView , 80 , ThumbnailOptions . ResizeThumbnail ) ;
544546 if ( itemThumbnailImg != null )
545547 {
546548 itemEmptyImgVis = Visibility . Collapsed ;
547549 itemThumbnailImgVis = Visibility . Visible ;
550+ icon . DecodePixelWidth = 80 ;
551+ icon . DecodePixelHeight = 80 ;
548552 await icon . SetSourceAsync ( itemThumbnailImg ) ;
549553 }
550554 else
0 commit comments