Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

NavigationService.LoadCompleted Event

Definition

Namespace:
System.Windows.Navigation
Assembly:
PresentationFramework.dll

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Occurs when content that was navigated to has been loaded, parsed, and has begun rendering.

public:
 event System::Windows::Navigation::LoadCompletedEventHandler ^ LoadCompleted;
public event System.Windows.Navigation.LoadCompletedEventHandler LoadCompleted;
member this.LoadCompleted : System.Windows.Navigation.LoadCompletedEventHandler 
Public Custom Event LoadCompleted As LoadCompletedEventHandler 

Event Type

Examples

The following example shows how to handle LoadCompleted.

void NavigationService_LoadCompleted(object sender, NavigationEventArgs e)
{
 string msg = string.Format("{0} loaded.", e.Uri.OriginalString);
 this.progressStatusBarItem.Content = msg;
}
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

Remarks

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:

LoadCompleted is not raised when the source page could not be found or loaded, in which case NavigationFailed is raised.

Note

When NavigationService raises LoadCompleted, it also raises Application.LoadCompleted event on the Application object.

Applies to

See also


Feedback

Was this page helpful?