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.

NavigationService.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 can be called as soon as Navigate returns, and stops navigation that is in progress in child frames.

(Frame).

Calling the StopLoading method raises the NavigationStopped event.

System_CAPS_noteNote

StopLoading must be called on the same thread that initiated the navigation.

The following example demonstrates how to stop loading.

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

.NET Framework
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2016 Microsoft