private async void Element_InvokeScriptEvent(object sender, InvokeScriptEventArgs e) { try { await Control.InvokeScriptAsync(e.ScriptName, new[] { e.Script }); } catch (Exception ex) { // if javascript returned error System.Diagnostics.Debug.Fail(ex.Message); } }
private async void Element_InvokeScriptEvent(object sender, InvokeScriptEventArgs e) { await Control.EvaluateJavaScriptAsync(e.Script); }
private void Element_InvokeScriptEvent(object sender, InvokeScriptEventArgs e) { Control.EvaluateJavascript(e.Script, null); }
private void DataContextOnInvokeScript(object sender, InvokeScriptEventArgs e) { Browser.InvokeScript(e.FunctionName, e.Parameters); }