How to handle system wake events in Winui 3

Mike Conley 0 Reputation points
2023-11-30T00:51:19.4866667+00:00

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.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,581 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
748 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,828 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 82,851 Reputation points
    2023-11-30T07:52:26.6033333+00:00
    0 comments No comments