示例#1
0
 /// <summary>
 /// To return a string to c#, simple invoke the csharp(str) method.
 /// </summary>
 private void OnNavigationComplete(NavigationCompletedDelegate eventObj)
 {
     Debug.WriteLine(string.Format("Navigation has been commited: {0}", eventObj.Uri));
 }
示例#2
0
 /// <summary>
 /// To return a string to c#, simple invoke the csharp(str) method.
 /// </summary>
 private void OnNavigationComplete(NavigationCompletedDelegate eventObj)
 {
     Debug.WriteLine(string.Format("Load Complete: {0}", eventObj.Sender.Uri));
     eventObj.Sender.InjectJavascript("csharp('Testing');");
     eventObj.Sender.InjectJavascript("alert('Demonstration Alert');");
 }