@@ -78,7 +78,6 @@ public async void AddItemsToCollectionAsync(string path, Page currentPage)
78
78
stopwatch . Start ( ) ;
79
79
80
80
PVIS . isVisible = Visibility . Visible ;
81
- TextState . isVisible = Visibility . Collapsed ;
82
81
83
82
switch ( Universal . path )
84
83
{
@@ -169,7 +168,7 @@ public async void AddItemsToCollectionAsync(string path, Page currentPage)
169
168
const uint step = 250 ;
170
169
BasicProperties basicProperties ;
171
170
StorageFolderQueryResult folderQueryResult = folder . CreateFolderQueryWithOptions ( options ) ;
172
- uint NumItems = await folderQueryResult . GetItemCountAsync ( ) ;
171
+ uint NumFolItems = await folderQueryResult . GetItemCountAsync ( ) ;
173
172
IReadOnlyList < StorageFolder > storageFolders = await folderQueryResult . GetFoldersAsync ( index , step ) ;
174
173
while ( storageFolders . Count > 0 )
175
174
{
@@ -251,7 +250,7 @@ public async void AddItemsToCollectionAsync(string path, Page currentPage)
251
250
return ;
252
251
}
253
252
itemName = file . DisplayName ;
254
- SetAsFriendlyDate ( basicProperties . ItemDate . LocalDateTime ) ;
253
+ SetAsFriendlyDate ( basicProperties . DateModified . LocalDateTime ) ;
255
254
itemPath = file . Path ;
256
255
if ( ByteSize . FromBytes ( basicProperties . Size ) . KiloBytes < 1 )
257
256
{
@@ -346,7 +345,10 @@ public async void AddItemsToCollectionAsync(string path, Page currentPage)
346
345
index += step ;
347
346
storageFiles = await fileQueryResult . GetFilesAsync ( index , step ) ;
348
347
}
349
-
348
+ if ( NumFolItems + NumFileItems == 0 )
349
+ {
350
+ TextState . isVisible = Visibility . Visible ;
351
+ }
350
352
stopwatch . Stop ( ) ;
351
353
Debug . WriteLine ( "Loading of items in " + Universal . path + " completed in " + stopwatch . Elapsed . Seconds + " seconds.\n " ) ;
352
354
0 commit comments