NavigationWindow.StopLoading Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Stops further downloading of content for the current navigation request.

Namespace:   System.Windows.Navigation
Assembly:  PresentationFramework (in PresentationFramework.dll)

public void StopLoading()

StopLoading stops the download of the requested content, and causes the NavigationStopped event to be raised.

See NavigationService.StopLoading.

The following example shows how to call the StopLoading method to stop navigation to content before it has finished being downloaded.

void navigateStopButton_Click(object sender, RoutedEventArgs e)
{
    this.StopLoading();
}

.NET Framework
Available since 3.0
Return to top
Show: