Skip to content

Commit df76c88

Browse files
committed
Merged PR 18865: fix table rendering, update Win8 info
fix table rendering, update Win8 info
1 parent 4f1f8e7 commit df76c88

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

‎windows.applicationmodel.activation/applicationexecutionstate.md‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,21 @@ The app was closed by the user.
3232
## -remarks
3333
This table provides more detail about when you'll see each of these states and what your app should do in response.
3434

35-
State|When this state is seen|What your app should do
36-
---|---|---
37-
**NotRunning**|The user first activates the app after 1) installing the app from the Store 2) clicking **End task** in Task Manager while the app is running 3) rebooting the computer 4) logging off and back on. The user closes the app through the close gesture or Alt+F4 and activates it within about 10 seconds of closing it.|Display its initial UI and perform initialization tasks.
38-
**Running**|The app is activated through a secondary tile or one of the [activation contracts and extensions](/previous-versions/windows/apps/hh464906(v=win.10)) while it is running.|Respond to the activation event as appropriate.
39-
**Suspended**|The app is activated through a secondary tile or one of the [activation contracts and extensions](/previous-versions/windows/apps/hh464906(v=win.10)) while Windows is suspending it or after Windows has suspended it.|Respond to the activation event as appropriate.
40-
**Terminated**|Windows successfully suspends the app and then it is terminated. For example, Windows can terminate a suspended app if the system is running low on resources. Some apps, such as games, can be pretty resource intensive.|Restore itself to the way the user left it, rather than starting fresh. Use data saved during app suspension. Refresh content or network connections that may have become stale.
41-
**ClosedByUser**|The user closes the app through the close gesture or Alt+F4 and takes longer than 10 seconds to activate the app again.|In Windows 8, display its initial UI and perform initialization tasks, rather than restoring its previous state. In Windows 8.1, restore itself to the way the user left it, rather than starting fresh. Use data saved during app suspension. Refresh content or network connections that may have become stale.
35+
| State | When this state is seen | What your app should do |
36+
| --- | --- | --- |
37+
| `NotRunning` | The user first activates the app after: 1) installing the app from the Store; 2) clicking **End task** in Task Manager while the app is running; 3) rebooting the computer; 4) logging off and back on.<br/>The user closes the app through the close gesture or Alt+F4 and activates it within about 10 seconds of closing it. | Display its initial UI and perform initialization tasks. |
38+
| `Running` | The app is activated through a secondary tile or one of the [activation contracts and extensions](/previous-versions/windows/apps/hh464906(v=win.10)) while it is running. | Respond to the activation event as appropriate. |
39+
| `Suspended` | The app is activated through a secondary tile or one of the [activation contracts and extensions](/previous-versions/windows/apps/hh464906(v=win.10)) while Windows is suspending it or after Windows has suspended it. | Respond to the activation event as appropriate. |
40+
| `Terminated` | Windows successfully suspends the app and then it is terminated. For example, Windows can terminate a suspended app if the system is running low on resources. Some apps, such as games, can be pretty resource intensive. | Restore itself to the way the user left it, rather than starting fresh. Use data saved during app suspension. Refresh content or network connections that may have become stale. |
41+
| `ClosedByUser` | The user closes the app through the close gesture or Alt+F4 and takes longer than 10 seconds to activate the app again. | Restore itself to the way the user left it, rather than starting fresh. Use data saved during app suspension. Refresh content or network connections that may have become stale. |
4242

43-
If your Windows 8 app depends on the Windows 8 **ClosedByUser** behavior, you can enable it when you upgrade it to Windows 8.1 by setting the [Windows.UI.ViewManagement.ApplicationView.TerminateAppOnFinalViewClose](../windows.ui.viewmanagement/applicationview_terminateapponfinalviewclose.md) property to **true**.
43+
### Windows 8
44+
45+
In Windows 8, when the `State` is `ClosedByUser`, display the app's initial UI and perform initialization tasks, rather than restoring its previous state. If your Windows 8 app depends on the Windows 8 `ClosedByUser` behavior, you can enable it when you upgrade it to Windows 8.1 or later by setting the [Windows.UI.ViewManagement.ApplicationView.TerminateAppOnFinalViewClose](../windows.ui.viewmanagement/applicationview_terminateapponfinalviewclose.md) property to `true`.
4446

4547
### Windows Phone 8
4648

47-
On Windows Phone, only **NotRunning** and **Suspended** are supported.
49+
On Windows Phone, only `NotRunning` and `Suspended` are supported.
4850

4951
## -examples
5052

0 commit comments

Comments
 (0)