Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

NavigationWindow.StopLoading Method ()

 

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:
© 2017 Microsoft