当文件夹包含大量图片时,OnContentsChanged不会触发(例如:200)。
QueryOptions folderOptions = new QueryOptions()
{
FolderDepth = FolderDepth.Deep
};
folderQuery = windowsFolder.CreateFolderQueryWithOptions(folderOptions);
folderQuery.ContentsChanged += OnContentsChanged;
await folderQuery.GetFoldersAsync();
private void OnContentsChanged(IStorageQueryResultBase sender, object args)
{
doSomething();
}