How do I receive the download progress of a Microsoft Store package? | WinUI/UWP
Anderson Rodrigues Cavalcante
316
Reputation points
Hi.
I'm installing a package from the Microsoft Store from my WinUI application, but I'd like to see the download progress.
I have the following code on Constructor:
PackageCatalog packageCatalog => PackageCatalog.OpenForCurrentUser();
And when I click to download I assign this event:
packageCatalog.PackageInstalling += PackageCatalog_PackageInstalling;
However, this event is only triggered after the download is completed, but I could see the progress by the args. I have the product ID from Microsoft Store and I'd like to monitor the downloading progress.
How can I do that?
Sign in to answer