Unzipping files with a progress bar in Windows Store applications (XAML/C#)

Here’s a method for unzipping a Zip file in a Windows Store application. ZipArchive is part of System.IO.Compression. private async Task UnzipWithProgress(StorageFolder outFolder, Stream zipFileStream, ProgressBar pb) { bool bDelete = false; using (var archive = new ZipArchive(zipFileStream)) { try { // Ensure the UI update part runs in the UI thread var ignore =…