Notification of WinRT app being closed

Topics: Getting Started, UI Architecture
Dec 29, 2013 at 10:14 AM
I currently try to get a notification in the view model of a WinRT app for when the app is closed (e.g. via the swipe down gesture). The view model inherits from Screen, but the deactivation and close overrides are not called when the app is closed. The overrides work in principle, because they are called when the view is switched.

What is the official way to be notified about the app being closed? I need a reliable way to detect that as I need to shut down the webcam.

Thanks in advance,
Christoph