예제 #1
0
 /// <summary>
 /// Prompt the user for a string and then post it as a web message.
 /// </summary>
 public void SendStringWebMessage()
 {
     TextInputDialog dialog = new TextInputDialog(
         "Post Web Message String",
         "Web message string:",
         "Enter the web message as a string.",
         string.Empty, 
         false);
     if (dialog.ShowDialog() == DialogResult.OK)
     {
         _webView2.PostWebMessageAsString(dialog.Input);
     }
 }