Occurs when content that was navigated to has been loaded, parsed, and has begun rendering.
Public Event LoadCompleted As LoadCompletedEventHandler
public event LoadCompletedEventHandler LoadCompleted
public: event LoadCompletedEventHandler^ LoadCompleted { void add (LoadCompletedEventHandler^ value); void remove (LoadCompletedEventHandler^ value); }
member LoadCompleted : IEvent<LoadCompletedEventHandler, NavigationEventArgs>
You handle LoadCompleted if you need to discover pertinent information regarding the navigation request upon load completion. This information is available from the NavigationEventArgs object that is passed to the LoadCompleted event handler, and includes:
The content and its uniform resource identifier (URI).
The navigator (NavigationWindow, Frame).
Additional data, if the navigation was initiated by calling either Navigate or Navigate.
Response details (using a WebResponse object).
LoadCompleted is not raised when the source page could not be found or loaded, in which case NavigationFailed is raised.
When NavigationService raises LoadCompleted, it also raises Application..::.LoadCompleted event on the Application object.
The following example shows how to handle LoadCompleted.
Private Sub NavigationService_LoadCompleted(ByVal sender As Object, ByVal e As NavigationEventArgs) Dim msg As String = String.Format("{0} loaded.", e.Uri.OriginalString) Me.progressStatusBarItem.Content = msg End Sub
void NavigationService_LoadCompleted(object sender, NavigationEventArgs e) { string msg = string.Format("{0} loaded.", e.Uri.OriginalString); this.progressStatusBarItem.Content = msg; }
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2