Table of Contents
WebView.LoadCompleted Event

Occurs when a page has loaded successfully.

Syntax
 public event LoadCompletedEventHandler LoadCompleted;
Event Data

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

Name Description
HttpStatusCode Gets the HTTP status code.
Task Gets the NavigationTask object associated to this event.
Url Gets the Url of the loaded page.
Remarks

Note that the page is considered being loaded sucessfully even if the server returns an HTTP status other than 200. For example, if the page you are trying to load requires log in but you choose cancel, then the Web server may returns "HTTP 401: Unauthorized" along with an error message indicating that you are not authorized to access the page. In that case the HTTP request is considered to be completed sucessfully (as oppose to other errors such as "server not found", "request canceled", in which cases the LoadFailed event will be fired). To determine whether the page has been loaded "normally", you can check whether the HttpStatusCode property of the event argument is 200.

See Also