Exemple #1
0
        public WebViewTest2Page()
        {
            InitializeComponent();

            string text = @"<div style='background-color:yellow'>
  <h1>Hello World!</h1>
</div>";

            InputField.Text = text;
            TargetWebView.LoadHTMLString(text);
        }
Exemple #2
0
 public void OnRunClicked(object sender, EventArgs e)
 {
     InputField.GetInputMethodContext()?.HideInputPanel();
     TargetWebView.LoadHTMLString(InputField.Text);
 }