Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

© 2015 Microsoft