共用方式為


NavigationService.LoadCompleted 事件

定義

當所巡覽的內容被載入、剖析以及開始呈現時,就會發生。

public:
 event System::Windows::Navigation::LoadCompletedEventHandler ^ LoadCompleted;
public event System.Windows.Navigation.LoadCompletedEventHandler LoadCompleted;
member this.LoadCompleted : System.Windows.Navigation.LoadCompletedEventHandler 
Public Custom Event LoadCompleted As LoadCompletedEventHandler 

事件類型

範例

下列範例示範如何處理 LoadCompleted

void NavigationService_LoadCompleted(object sender, NavigationEventArgs e)
{
    string msg = string.Format("{0} loaded.", e.Uri.OriginalString);
    this.progressStatusBarItem.Content = msg;
}
Private Sub NavigationService_LoadCompleted(ByVal sender As Object, ByVal e As NavigationEventArgs)
    Dim msg As String = String.Format("{0} loaded.", e.Uri.OriginalString)
    Me.progressStatusBarItem.Content = msg
End Sub

備註

如果您需要在載入完成時探索巡覽要求的相關資訊,請處理 LoadCompleted 。 此資訊可從 NavigationEventArgs 傳遞至 LoadCompleted 事件處理常式的物件取得,包括:

LoadCompleted 當找不到或載入來源頁面時,不會引發,在此情況下 NavigationFailed 會引發。

注意

引發 LoadCompletedNavigationService ,也會在 物件上 Application 引發 Application.LoadCompleted 事件。

適用於

另請參閱