I have a Windows UWP C # / XAML application that has a strange problem. When the display goes into sleep mode and I wake up the computer, some buttons disappear. I have a Windows 8 application that demonstrates the same behavior on Windows 10, but not on Windows 8. I want to try to create a workaround that updates the user interface elements when I wake up from sleep, but it's hard for me to find a trigger. I heard about this PowerModeChanged event , but I just can't find this API. Any ideas?

c # windows windows-10 hibernate xaml
Joris weimar
source share