Silverlight 4 oob アプリのページがあります。アプリがインストールされた後、ページのページは自動的に更新されます。InstallStateChanged のコードからスクリプトまたは単純な Document.Submit を呼び出してみましたが、それらはすべて Win XP (私のマシンだけでなく) でうまく機能しましたが、Win 7 または Vista では、インストール開始前にページがハングしたり、Silverlight プラグインがクラッシュしたりすることさえありました。ただし、インストール プロセスの更新機能がなければスムーズに流れます。これらのシステムを正しく更新するにはどうすればよいですか? これが発生する理由についての情報も役立ちます。
public App ()
{
this.Startup += this.Application_Startup;
this.Exit += this.Application_Exit;
this.UnhandledException += this.Application_UnhandledException;
InitializeComponent();
App.Current.InstallStateChanged += (s, c) => HtmlPage.Document.Submit(); //used that as the most common used example
}
private void Application_Startup (object sender, StartupEventArgs e)
{
if (Application.Current.IsRunningOutOfBrowser)
{
this.RootVisual = new MainPage();
} else if (Application.Current.InstallState == InstallState.Installed)
{
this.RootVisual = new InstalledPage();
} else
{
this.RootVisual = new InstallPage();
}
}
MainPage と installedPage は、テキスト フィールドを持つ単純なグリッドです。インストールページには、クリックイベントのあるボタンのみが含まれています-アプリをインストールします。Webページは自動生成されたものです。これ以上何もない。まだWin 7とVistaでは、インストール中に同じ問題があります。
UPD:プロジェクト ファイル