我正在将下载按钮修改为:
尝试使用MediaDeletionRequest,仍然没有运气。
private void Download_Click(object sender, RoutedEventArgs e)
{
if (files.Count == 0)
{
taskModel.Sync = "Should reload before download";
return;
}
if (taskModel.CompleteCount != 0)
{
taskModel.Sync = "Downloading is transfer, Cancel First";
return;
}
DownloadAllFiles();
//1st attempt to delete the files
var clearSD = new MediaDeletionRequest
{
location = MediaFileListLocation.SD_CARD,
isDeleteAll = true,
};
//2nd attempt to delete the files
new MediaDeletionRequest
{
location = MediaFileListLocation.SD_CARD,
isDeleteAll = true,
};
}
下载完文件后,单击“重新加载”按钮,预计会显示0张图片。