Export (0) Print
Expand All

Page.OnNavigatedFrom Method

Silverlight

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
)

Parameters

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.

Silverlight

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

ADD
Show:
© 2014 Microsoft