私は phonegap アプリケーションを開発しています。ページの読み込み中に円形の進行状況ダイアログを表示しようとしています。android で phonegap プラグインを使用してこれを実現しました。プラグインを使用して phonegap で Windows ネイティブからメッセージ ボックスを表示しようとすると、「無効なクロス -スレッド アクセス。
ここに私のコードがあります
     using System;
     using System.Collections.Generic;
     using System.Linq;
     using System.Text;
     using Microsoft.Phone.Shell;
     using System.Windows;
     namespace WPCordovaClassLib.Cordova.Commands
     {
          public class Echo : BaseCommand
          {
              public void echo(string options)
              {
                  MessageBox.Show("Are you sure?", "Delete Item", MessageBoxButton.OKCancel);
              }
          }
      }
私のスクリーンショット

私のJavaScript呼び出し
    cordova.exec( function(){}, function(){}, "Echo","echo", ["input string"]);