Freigeben über


WebBrowser.LoadCompleted Event

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Occurs when top-level navigation completes and the content loads into the WebBrowser control or when an error occurs during loading.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Event LoadCompleted As LoadCompletedEventHandler
public event LoadCompletedEventHandler LoadCompleted
<WebBrowser LoadCompleted="eventHandler"/>

Remarks

Top-level navigation occurs when the Source property is set or Navigate is called.

If an error occurs, such as the content cannot be found, the LoadCompleted event is raised when the error is returned from the Web server.

You handle this event and call WebBrowserBrush.Redraw if the WebBrowser is associated with an WebBrowserBrush.

For more information about handling events, see Events Overview for Silverlight.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.