共用方式為


NavigationService.NavigationStopped 事件

定義

當呼叫 StopLoading() 方法,或是當目前的巡覽正在進行,但又要求新的巡覽時,就會發生。

public:
 event System::Windows::Navigation::NavigationStoppedEventHandler ^ NavigationStopped;
public event System.Windows.Navigation.NavigationStoppedEventHandler NavigationStopped;
member this.NavigationStopped : System.Windows.Navigation.NavigationStoppedEventHandler 
Public Custom Event NavigationStopped As NavigationStoppedEventHandler 

事件類型

範例

下列範例示範如何處理 NavigationStopped

void NavigationService_NavigationStopped(object sender, NavigationEventArgs e)
{
    this.progressStatusBarItem.Content = "Navigation stopped.";
}
Private Sub NavigationService_NavigationStopped(ByVal sender As Object, ByVal e As NavigationEventArgs)
    Me.progressStatusBarItem.Content = "Navigation stopped."
End Sub

備註

如果您需要在下載停止時探索流覽要求的相關資訊,請處理 NavigationStopped 。 這項資訊可從 NavigationEventArgs 傳遞至 NavigationStopped 事件處理常式的物件取得,並包含:

注意

當 引發 NavigationStoppedNavigationService ,也會在 物件上 Application 引發 Application.NavigationStopped 事件。

適用於

另請參閱