NavigationService.StopLoading Method
Definition
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.
Stops further downloading of content for the current navigation request.
public:
void StopLoading();
public void StopLoading ();
member this.StopLoading : unit -> unit
Public Sub StopLoading ()
Examples
The following example demonstrates how to stop loading.
void stopButton_Click(object sender, RoutedEventArgs e)
{
this.NavigationService.StopLoading();
}
Private Sub stopButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
Me.NavigationService.StopLoading()
End Sub
Remarks
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.
Note
StopLoading must be called on the same thread that initiated the navigation.
Applies to
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για