WebView.NavigationCompleted 이벤트
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
// Register
event_token NavigationCompleted(TypedEventHandler<WebView, WebViewNavigationCompletedEventArgs const&> const& handler) const;
// Revoke with event_token
void NavigationCompleted(event_token const* cookie) const;
// Revoke with event_revoker
WebView::NavigationCompleted_revoker NavigationCompleted(auto_revoke_t, TypedEventHandler<WebView, WebViewNavigationCompletedEventArgs const&> const& handler) const;
C#
public event TypedEventHandler<WebView,WebViewNavigationCompletedEventArgs> NavigationCompleted;
function onNavigationCompleted(eventArgs) { /* Your code */ }
webView.addEventListener("navigationcompleted", onNavigationCompleted);
webView.removeEventListener("navigationcompleted", onNavigationCompleted);
- or -
webView.onnavigationcompleted = onNavigationCompleted;
Public Custom Event NavigationCompleted As TypedEventHandler(Of WebView, WebViewNavigationCompletedEventArgs)
XAML
<WebView NavigationCompleted="eventhandler"/>
탐색에 실패했는지 여부를 확인하려면 WebViewNavigationCompletedEventArgs 클래스의 IsSuccess 및 WebErrorStatus 속성을 확인합니다.
WebView 탐색 이벤트는 다음 순서로 발생합니다.
- NavigationStarting
- ContentLoading
- DOMContentLoaded
- NavigationCompleted
WebView 콘텐츠의 각 iframe에 대해 비슷한 이벤트가 동일한 순서로 발생합니다.
제품 | 버전 |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |