Example #1
0
        void WebView5_LoadCompleted(object sender, NavigationEventArgs e)
        {
            List <Uri> allowedUris = new List <Uri>();

            allowedUris.Add(new Uri("http://kexp.org"));
            WebView5.AllowedScriptNotifyUris = allowedUris;
            WebView5.ScriptNotify           += WebView5_ScriptNotify;
            string[] args = { "document.title;" };
            string   foo  = WebView5.InvokeScript("eval", args);

            rootPage.NotifyUser(String.Format("Title is: {0}", foo), NotifyType.StatusMessage);
        }
Example #2
0
 /// <summary>
 /// Invoked when this page is about to be displayed in a Frame.
 /// </summary>
 /// <param name="e">Event data that describes how this page was reached.  The Parameter
 /// property is typically used to configure the page.</param>
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     WebView5.LoadCompleted += WebView5_LoadCompleted;
     WebView5.Navigate(new Uri("http://kexp.org/Playlist"));
 }