Page.OnDisappearing Method

Definition

When overridden in a derived class, allows the application developer to customize behavior as the page disappears.

protected:
 virtual void OnDisappearing();
protected virtual void OnDisappearing ();
abstract member OnDisappearing : unit -> unit
override this.OnDisappearing : unit -> unit
Protected Overridable Sub OnDisappearing ()

Remarks

This method is called when the page disappears due to navigating away from the page within the app. It is not called when the app disappears due to an event external to the app (e.g. user navigates to the home screen or another app, a phone call is received, the device is locked, the device is turned off).

Applies to