Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Page.OnNavigatedFrom Method


Called when a page is no longer the active page in a frame.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Navigation (in System.Windows.Controls.Navigation.dll)

protected virtual void OnNavigatedFrom(
	NavigationEventArgs e


Type: System.Windows.Navigation.NavigationEventArgs
An object that contains the event data.

You override the OnNavigatedFrom method to take any final actions on the page when it has become inactive. For example, you can update data related to the page.

Typically, you use the OnNavigatedFrom method instead of creating an event handler for the Navigated event. Using the OnNavigatedFrom method is preferable because you do not have to remove the event handler from the NavigationService object to avoid object lifetime issues.


Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2016 Microsoft