Exit Event
Collapse the table of content
Expand the table of content

Application.Exit Event

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Occurs just before an application shuts down and cannot be canceled.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public event EventHandler Exit
<Application Exit="eventhandler"/>

We recommend that you handle the Closing event instead of the Exit event to persist the state of the app when the app is closed.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft