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.NavigationStopped 对象上Application引发 事件。

适用于

另请参阅