private void OnFrameNavigationCompleted(WebViewControlNavigationCompletedEventArgs args)
        {
            var handler = FrameNavigationCompleted;

            if (handler != null)
            {
                handler(this, args);
            }
        }
        private void OnNavigationCompleted(WebViewControlNavigationCompletedEventArgs args)
        {
            // We could have used
            // if (NavigationCompleted != null) NavigationCompleted(this, args);
            // However, if there is a subscriber and the moment the null check and the call to
            // the event handler by the method is invoked, the subscriber may unsubscribe
            // (e.g. on a different thread) and cause a NullReferenceException.
            // To work around this create a temporarily local variable to store the reference and check that
            var handler = NavigationCompleted;

            if (handler != null)
            {
                handler(this, args);
            }
        }
        private void OnNavigationCompleted(IWebViewControl sender, Windows.Web.UI.WebViewControlNavigationCompletedEventArgs args)
        {
            // When Source set to null or navigating to stream/string, we navigate to "about:blank" internally.
            if (NavigatingToAboutBlank)
            {
                Verify.Implies(NavigatingToAboutBlank, Source == null || Source == WebViewDefaults.AboutBlankUri);

                // Make sure we pass null in the event args
                var a = new WebViewControlNavigationCompletedEventArgs(args, null);
                OnNavigationCompleted(a);
            }
            else
            {
                OnNavigationCompleted(args);
            }
        }