NavigationFailed Event
Collapse the table of content
Expand the table of content

NavigationService.NavigationFailed Event

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

Occurs when an error is encountered while navigating to the requested content.

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

public event NavigationFailedEventHandler NavigationFailed

You handle the NavigationFailed event when you need to override the default behavior for handling navigation exceptions. You can handle this event to take a corrective action after a navigation exception, such as redirecting to another page or displaying an appropriate error message.

The event handler for the NavigationFailed event is passed an instance of the NavigationFailedEventArgs class, which encapsulates information about the navigation request and the exception. You set the Handled property to true if you do not want the exception to be re-thrown.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2016 Microsoft