Table of Contents
WebView.LaunchUrl Event

Occurs when the browser needs to launch an external Url.

Syntax
 public event LaunchUrlHandler LaunchUrl;
Event Data

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

Name Description
Url Gets the Url to be launched.
UseOSHandler Gets or sets a value indicating whether the OS handler should be used.
Remarks

Some Urls, such as the "mailto:" Url, the browser engine does not handle them natively. When user clicks on such Urls, LaunchUrl event will be fired. Inside the event handler you can examine the event argument's Url property to decide what to do. You can also set UseOSHandler to true so that the default OS handler will be used.

See Also