The following forum(s) are migrating to a new home on Microsoft Q&A (Preview): Developing Universal Windows apps!

Ask new questions on Microsoft Q&A (Preview).
Interact with existing posts until December 13, 2019, after which content will be closed to all new and existing posts.

Learn More

 none
SystemEvents.PowerModeChanged is not working in UWP RRS feed

  • Question

  • SystemEvents.PowerModeChanged is not working in UWP.. is there any alternative in UWP ?

    SystemEvents.PowerModeChanged += OnPowerChange; private void OnPowerChange(object s, PowerModeChangedEventArgs e) { switch ( e.Mode ) { case PowerModes.Resume: break; case PowerModes.Suspend: break; } }

    Tuesday, June 4, 2019 2:17 PM

All replies