Exemple #1
0
 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);
     }
 }
Exemple #2
0
 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);
 }
Exemple #4
0
 private void DataContextOnInvokeScript(object sender, InvokeScriptEventArgs e)
 {
     Browser.InvokeScript(e.FunctionName, e.Parameters);
 }