NavigationService.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 Sub 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.

Private Sub stopButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
    Me.NavigationService.StopLoading()
End Sub

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