What happens to Modern-UI apps when they aren't in the foreground?
If I start a Modern-UI app and then switch to a different app or a normal program running on the desktop, what happens to the first app?
The app enters a suspended state — you can check its resources in task manager.
Apps will be suspended when you are not using them, this is for performance. When suspended you won't feel your system 'lag' (ie slowdowns attributed to running an intensive application in the background).
Windows 8 is designed to keep in mind that when any background app is not active, it should not use much CPU, so your system performs well in the active app.
Any Metro style app is in one of 4 lifecycle states at any given time:
- Not Running
- Running
- Suspended
- Terminated
As the app transitions between states, it receives lifecycle events that help provide a consistent and high performance experience to the user.
There are some MSDN blogs which can help you to implement what you want to.
Managing app lifecycle so your apps feel "always alive"
Being productive when your app is offscreen
Being productive in the background – background tasks