.NET
Microsoft Technologies based on the .NET software framework.
3,581 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How can I handle the system wake events so in WinUI 3 with .net 8? If the application I'm developing happens to be running when the system goes to sleep, I would like to run some code to refresh some stale data when the system wakes up.
A way is with PowerRegisterSuspendResumeNotification
I had posted a sample in this thread: https://github.com/microsoft/WindowsAppSDK/discussions/2630