A page navigation event that occurs after onbeforenavigate and before onnavigated. This event can be used to perform other actions during navigation.
Syntax
WinJS.Navigation.addEventListener("navigating", listenerName);
or
WinJS.Application.onnavigating = listenerName;
Event information
Synchronous | No |
Bubbles | Yes |
Cancelable | Yes |
Event handler parameters
eventInfo
Type: CustomEvent**An object that contains information about the event. The detail property of this object contains the following sub-properties:
- ___location: The URI to navigate to.
- state: One or more user-defined key-value pairs.
- delta: The number of pages traversed forward or backward in the navigation stack. This value is typically +1, -1, or the value of distance specified in back or forward.
Requirements
Minimum WinJS version |
WinJS 1.0 |
Namespace |
WinJS.Navigation |
See also
For developers
Your first app - Part 3: PageControl objects and navigation
Quickstart: Using single-page navigation
Quickstart: Adding a nav bar (NavBar)
Quickstart: Using a hub control for layout and navigation
Navigation and navigation history sample
For designers
Top app bar
Guidelines for the hub control
Guidelines for app bars