public WebViewTest2Page() { InitializeComponent(); string text = @"<div style='background-color:yellow'> <h1>Hello World!</h1> </div>"; InputField.Text = text; TargetWebView.LoadHTMLString(text); }
public void OnRunClicked(object sender, EventArgs e) { InputField.GetInputMethodContext()?.HideInputPanel(); TargetWebView.LoadHTMLString(InputField.Text); }