Frame.NavigationFailed event

Applies to Windows and Windows Phone

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

Syntax


public:
event NavigationFailedEventHandler^ NavigationFailed {
   Windows::Foundation::EventRegistrationToken add(NavigationFailedEventHandler^ value);
   void remove(Windows::Foundation::EventRegistrationToken token);
}


<Frame NavigationFailed="eventhandler" />

Event information

Delegate NavigationFailedEventHandler

Remarks

Currently, you must handle NavigationFailed to respond when the Navigate method fails. You can handle the failure directly in the event handler, or you can set the NavigationFailedEventArgs.Handled property to true and use the Navigate method return value to respond to the failure.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

Frame
Navigate
NavigationFailedEventArgs

 

 

Show:
© 2014 Microsoft