protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            _url = NavigationContext.QueryString["url"];

            BrowserSignInControl.Navigated    += SignInWebBrowserControlNavigated;
            BrowserSignInControl.Navigating   += SignInWebBrowserControlNavigating;
            BrowserSignInControl.ScriptNotify += SignInWebBrowserControlScriptNotify;
            BrowserSignInControl.NavigateToString("<html><head><title></title></head><body><h1>Loading...<h1></body></html>");
        }
Example #2
0
 private void SignInWebBrowserControlNavigated(object sender, NavigationEventArgs e)
 {
     GdProgress.Visibility = Visibility.Collapsed;
     if (e.Uri == null && !string.IsNullOrEmpty(_url))
     {
         BrowserSignInControl.Navigate(new Uri(_url));
     }
     else if (e.Uri != null && string.IsNullOrEmpty(e.Uri.ToString()) && !string.IsNullOrEmpty(_url))
     {
         BrowserSignInControl.Navigate(new Uri(_url));
     }
 }