Table of Contents
WebView.BeforeNavigate Event

Occurs before this WebView navigates to another page.

Syntax
 public event BeforeNavigateHandler BeforeNavigate;
Event Data

The event handler receives an argument of type BeforeNavigateEventArgs containing data related to this event. The following BeforeNavigateEventArgs properties provide information specific to this event.

Name Description
Cancel 
FrameName Gets the target frame name.
IsMainFrame Gets a value indicating whether the target frame is the main frame.
IsRedirect Gets a value indicating whether this navigation is a redirection.
IsUserGesture Gets whether this navigation is caused by user such as clicking a link.
Method Gets the HTTP method.
NavigationType Gets the type of the navigation.
NewUrl Gets the new Url to be loaded into the target frame.
OldUrl Gets the old Url loaded in the target frame.
Remarks

Note: This event is raised by an internal worker thread. You must return from your event handling code as fast as possible.

See Also