Navigating Event
Collapse the table of content
Expand the table of content

NavigationService.Navigating Event

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

Occurs when a new navigation is requested.

Namespace:  System.Windows.Navigation
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public event NavigatingCancelEventHandler Navigating

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft